We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e792b4b commit a3ba096Copy full SHA for a3ba096
android/src/main/java/io/ionic/portals/reactnative/PortalView.kt
@@ -49,6 +49,16 @@ internal class PortalViewManager(private val context: ReactApplicationContext) :
49
return mutableMapOf("create" to createId)
50
}
51
52
+ @Deprecated("Deprecated, but using to support New Architecture")
53
+ override fun receiveCommand(root: FrameLayout, commandId: Int, args: ReadableArray?) {
54
+ super.receiveCommand(root, commandId, args)
55
+ val viewId = args?.getInt(0) ?: return
56
+
57
+ when (commandId) {
58
+ createId -> createFragment(root, viewId)
59
+ }
60
61
62
override fun receiveCommand(root: FrameLayout, commandId: String?, args: ReadableArray?) {
63
super.receiveCommand(root, commandId, args)
64
val viewId = args?.getInt(0) ?: return
0 commit comments