@dolami-inc/react-native-expo-unity 0.4.3 → 0.4.4

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.
@@ -62,6 +62,11 @@ class UnityBridge private constructor() : IUnityPlayerLifecycleEvents, NativeCal
62
62
 
63
63
  val runInit = Runnable {
64
64
  try {
65
+ // Load native libraries required by Unity's GameActivity mode.
66
+ // Unity's own launcher does this via android.app.lib_name metadata,
67
+ // but since we bypass GameActivity lifecycle we load manually.
68
+ System.loadLibrary("game")
69
+
65
70
  // Create the container and surface that Unity will render into
66
71
  val frameLayout = FrameLayout(activity)
67
72
  frameLayout.layoutParams = FrameLayout.LayoutParams(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dolami-inc/react-native-expo-unity",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "Unity as a Library (UaaL) bridge for React Native / Expo",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",