Skip to content

Instantly share code, notes, and snippets.

@eugenehp
Created April 5, 2021 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eugenehp/ebf22c9dd168ea28fade7796c59251c0 to your computer and use it in GitHub Desktop.
Save eugenehp/ebf22c9dd168ea28fade7796c59251c0 to your computer and use it in GitHub Desktop.
react-native-randomness kotlin package
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