2021-02-19 08:28:14 -07:00
|
|
|
package com.cuvent.experiences.friends.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 {
|
2021-02-19 08:07:53 -07:00
|
|
|
override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
|
2021-02-19 08:28:14 -07:00
|
|
|
return listOf(CameraViewModule(reactContext))
|
2021-02-19 08:07:53 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> {
|
2021-02-19 08:28:14 -07:00
|
|
|
return listOf(CameraViewManager())
|
2021-02-19 08:07:53 -07:00
|
|
|
}
|
|
|
|
}
|