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 {
|
2023-09-21 03:20:33 -06:00
|
|
|
override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> =
|
|
|
|
listOf(
|
|
|
|
CameraViewModule(reactContext),
|
|
|
|
CameraDevicesManager(reactContext)
|
|
|
|
)
|
2021-02-19 08:07:53 -07:00
|
|
|
|
2023-09-21 03:20:33 -06:00
|
|
|
override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> = listOf(CameraViewManager())
|
2021-02-19 08:07:53 -07:00
|
|
|
}
|