@umang-thakkar/base-template 1.1.0 → 1.1.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.
package/package.json
CHANGED
|
@@ -4,7 +4,8 @@ import com.facebook.react.ReactActivity
|
|
|
4
4
|
import com.facebook.react.ReactActivityDelegate
|
|
5
5
|
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
|
|
6
6
|
import com.facebook.react.defaults.DefaultReactActivityDelegate
|
|
7
|
-
|
|
7
|
+
import android.os.Bundle;
|
|
8
|
+
import com.swmansion.rnscreens.fragment.restoration.RNScreensFragmentFactory;
|
|
8
9
|
class MainActivity : ReactActivity() {
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -19,4 +20,9 @@ class MainActivity : ReactActivity() {
|
|
|
19
20
|
*/
|
|
20
21
|
override fun createReactActivityDelegate(): ReactActivityDelegate =
|
|
21
22
|
DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled)
|
|
23
|
+
|
|
24
|
+
override fun onCreate(savedInstanceState: Bundle?) {
|
|
25
|
+
supportFragmentManager.fragmentFactory = RNScreensFragmentFactory()
|
|
26
|
+
super.onCreate(savedInstanceState);
|
|
27
|
+
}
|
|
22
28
|
}
|
package/template/package.json
CHANGED
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"react-native": "0.84.0",
|
|
23
23
|
"react-native-gesture-handler": "^3.0.1",
|
|
24
24
|
"react-native-safe-area-context": "^5.8.0",
|
|
25
|
-
"react-native-screens": "^4.
|
|
25
|
+
"react-native-screens": "^4.25.0",
|
|
26
26
|
"react-native-svg": "^15.12.1",
|
|
27
27
|
"react-native-reanimated": "^4.4.1",
|
|
28
|
-
"react-native-worklets": "^0.
|
|
28
|
+
"react-native-worklets": "^0.10.0",
|
|
29
29
|
"react-redux": "^9.3.0",
|
|
30
30
|
"redux-persist": "^6.0.0"
|
|
31
31
|
},
|