@ionic/portals-react-native 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,6 +49,16 @@ internal class PortalViewManager(private val context: ReactApplicationContext) :
49
49
  return mutableMapOf("create" to createId)
50
50
  }
51
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
+
52
62
  override fun receiveCommand(root: FrameLayout, commandId: String?, args: ReadableArray?) {
53
63
  super.receiveCommand(root, commandId, args)
54
64
  val viewId = args?.getInt(0) ?: return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ionic/portals-react-native",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Portals for React Native",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",