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 {
|
2021-02-26 02:56:20 -07:00
|
|
|
override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
|
|
|
|
return listOf(CameraViewModule(reactContext))
|
|
|
|
}
|
2021-02-19 08:07:53 -07:00
|
|
|
|
2021-02-26 02:56:20 -07:00
|
|
|
override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> {
|
2023-08-21 06:43:12 -06:00
|
|
|
return listOf(CameraViewManager())
|
2021-02-26 02:56:20 -07:00
|
|
|
}
|
2021-02-19 08:07:53 -07:00
|
|
|
}
|