react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraPackage.kt

17 lines
565 B
Kotlin
Raw Normal View History

2021-02-19 12:41:49 -07:00
package com.mrousavy.camera
2021-02-19 08:07:53 -07:00
import com.facebook.react.ReactPackage
import com.facebook.react.bridge.NativeModule
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.uimanager.ViewManager
2021-02-19 08:28:14 -07:00
class CameraPackage : ReactPackage {
override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
return listOf(CameraViewModule(reactContext))
}
2021-02-19 08:07:53 -07:00
override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> {
return listOf(CameraViewManager(reactContext))
}
2021-02-19 08:07:53 -07:00
}