Created
April 5, 2021 20:42
-
-
Save eugenehp/ebf22c9dd168ea28fade7796c59251c0 to your computer and use it in GitHub Desktop.
react-native-randomness kotlin package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.reactnativerandomness | |
import com.facebook.react.ReactPackage | |
import com.facebook.react.bridge.NativeModule | |
import com.facebook.react.bridge.ReactApplicationContext | |
import com.facebook.react.uimanager.ViewManager | |
class RandomnessPackage : ReactPackage { | |
override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> { | |
return listOf(RandomnessModule(reactContext)) | |
} | |
override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> { | |
return emptyList() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment