Skip to content

Instantly share code, notes, and snippets.

@tanner-west
Last active July 19, 2023 19:23
Show Gist options
  • Save tanner-west/281980fce222a612d284f76aa4a8a07c to your computer and use it in GitHub Desktop.
Save tanner-west/281980fce222a612d284f76aa4a8a07c to your computer and use it in GitHub Desktop.
package com.visionnativemodulepoc
import android.util.Log
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReactContextBaseJavaModule
import com.facebook.react.bridge.ReactMethod
class RNVisionModulePOC(reactContext: ReactApplicationContext): ReactContextBaseJavaModule(reactContext) {
private val TAG = "VisionModule"
override fun getName() = "VisionModule"
@ReactMethod
fun sayHello(){
Log.i(TAG, "says hello")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment