fix: Fix hot-reload crash caused by Frame Processor Runtime being initialized twice (#258)

* Fix Frame Processor Runtime being initialized twice causing a hot-reload to crash

* Remove unnecessary `HasRegisteredPlugins` singleton

* make non-optional

* `REACT_CLASS` -> `TAG`

* fix nullable
This commit is contained in:
Marc Rousavy
2021-07-07 15:00:32 +02:00
committed by GitHub
parent d3a8b49f9b
commit 2f889f5855
4 changed files with 24 additions and 31 deletions

View File

@@ -155,16 +155,16 @@ class CameraViewManager : SimpleViewManager<CameraView>() {
}
override fun onDropViewInstance(view: CameraView) {
Log.d(REACT_CLASS, "onDropViewInstance() called!")
Log.d(TAG, "onDropViewInstance() called!")
super.onDropViewInstance(view)
}
override fun getName(): String {
return REACT_CLASS
return TAG
}
companion object {
const val REACT_CLASS = "CameraView"
const val TAG = "CameraView"
val cameraViewTransactions: HashMap<CameraView, ArrayList<String>> = HashMap()
}