diff --git a/android/app/src/main/java/com/shoutemapp/MainActivity.kt b/android/app/src/main/java/com/shoutemapp/MainActivity.kt index afa273b5ec..c90b2c29d1 100644 --- a/android/app/src/main/java/com/shoutemapp/MainActivity.kt +++ b/android/app/src/main/java/com/shoutemapp/MainActivity.kt @@ -12,7 +12,15 @@ class MainActivity : ReactActivity() { override fun onCreate(savedInstanceState: Bundle?) { //NativeModuleInjectionMark-mainActivity-onCreate - super.onCreate(savedInstanceState) + // Pass null instead of savedInstanceState — canonical react-native-screens + // workaround for Fragment$InstantiationException. ScreenFragment has a + // guard ("Screen fragments should never be restored") that fires whenever + // the FragmentManager tries to re-instantiate a saved ScreenFragment from + // savedInstanceState. Android 16 recreates activities much more + // aggressively, making this fire at scale (and visibly across all Android + // versions, with Android 16 the worst). + // See https://github.com/software-mansion/react-native-screens/issues/17 + super.onCreate(null) } override fun invokeDefaultOnBackPressed() { diff --git a/package.json b/package.json index e3529aff96..0e23f90140 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@shoutem/platform", - "version": "17.0.8", + "version": "17.0.9-rc.0", "scripts": { "android": "react-native run-android", "build": "node scripts/build", diff --git a/package.template.json b/package.template.json index dbf5192c32..712a29fac3 100644 --- a/package.template.json +++ b/package.template.json @@ -1,6 +1,6 @@ { "name": "@shoutem/platform", - "version": "17.0.8", + "version": "17.0.9-rc.0", "scripts": { "android": "react-native run-android", "build": "node scripts/build", diff --git a/package.template.web.json b/package.template.web.json index 28d85c1098..152db1c307 100644 --- a/package.template.web.json +++ b/package.template.web.json @@ -1,6 +1,6 @@ { "name": "@shoutem/platform", - "version": "17.0.8", + "version": "17.0.9-rc.0", "scripts": { "build": "node scripts/build", "bundle": "node scripts/bundle", diff --git a/platform/platform.json b/platform/platform.json index 68567c5eae..da3167f470 100644 --- a/platform/platform.json +++ b/platform/platform.json @@ -1,13 +1,13 @@ { - "version": "17.0.8", - "releaseNotes": "Release notes\n* 📱 Fixed issues with splash screen on iOS.\n* 🛜 Improved connectivity UX/UI", + "version": "17.0.9-rc.0", + "releaseNotes": "Release notes\n* 🛠️ Fixed issues with ocassional crashes on android 16 devices.", "builds": { "live": { "excludedPackages": [] } }, "nativeChanges": { - "lastVersion": "17.0.4" + "lastVersion": "17.0.9-rc.0" }, "dependencies": { "shoutem.about": "~9.0.3", @@ -39,7 +39,7 @@ "shoutem.in-app-purchases": "~7.3.0", "shoutem.interactive-faq": "~8.0.2", "shoutem.layouts": "~8.1.2", - "shoutem.live-update": "~2.1.0", + "shoutem.live-update": "~2.1.1-rc.0", "shoutem.loyalty": "~8.0.3", "shoutem.menu": "~6.0.0", "shoutem.navigation": "~7.4.5",