Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tanner-west/f665eb2474008706c38cd0e78040d4a1 to your computer and use it in GitHub Desktop.
Save tanner-west/f665eb2474008706c38cd0e78040d4a1 to your computer and use it in GitHub Desktop.
package com.visionnativemodulepoc
import android.view.View
import com.facebook.react.ReactPackage
import com.facebook.react.bridge.NativeModule
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.uimanager.ReactShadowNode
import com.facebook.react.uimanager.ViewManager
import com.visionnativemodulepoc.RNVisionModulePOC
class RNVisionModulePOCPackage : ReactPackage {
override fun createViewManagers(
reactContext: ReactApplicationContext
): MutableList<ViewManager<View, ReactShadowNode<*>>> = mutableListOf()
override fun createNativeModules(
reactContext: ReactApplicationContext
): MutableList<NativeModule> = listOf(RNVisionModulePOC(reactContext)).toMutableList()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment