fix: Fix RN 0.73 compatibility (#2260)
This commit is contained in:
parent
a77939f6c4
commit
2ce3b4a0ef
@ -35,7 +35,8 @@ class VisionCameraProxy(context: ReactApplicationContext) {
|
||||
|
||||
init {
|
||||
val jsCallInvokerHolder = context.catalystInstance.jsCallInvokerHolder as CallInvokerHolderImpl
|
||||
val jsRuntimeHolder = context.javaScriptContextHolder.get()
|
||||
val jsRuntimeHolder =
|
||||
context.javaScriptContextHolder?.get() ?: throw Error("JSI Runtime is null! VisionCamera does not yet support bridgeless mode..")
|
||||
mScheduler = VisionCameraScheduler()
|
||||
mContext = WeakReference(context)
|
||||
mHybridData = initHybrid(jsRuntimeHolder, jsCallInvokerHolder, mScheduler)
|
||||
|
Loading…
Reference in New Issue
Block a user