@computools/react-native-template-controller 1.0.53 → 1.0.55
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/README.md +2 -1
- package/package.json +1 -1
- package/template/android/app/src/main/java/com/reactnativetemplate/MainApplication.kt +8 -19
- package/template/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/template/android/gradlew +1 -1
- package/template/ios/Podfile +0 -1
- package/template/ios/ReactNativeTemplate/Info.plist +2 -0
- package/template/package.json +8 -8
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
<img src="https://ik.imagekit.io/computools/computools-background/upload-8a50e7e4-c14e-4b55-ae17-bd0cca2f6493.webp">
|
|
12
12
|
|
|
13
|
-
### Latest supported RN version [0.81.
|
|
13
|
+
### Latest supported RN version [0.81.4](https://github.com/facebook/react-native/releases/tag/v0.81.4) 🎯
|
|
14
14
|
|
|
15
15
|
### Precondition: 📗
|
|
16
16
|
|
|
@@ -41,6 +41,7 @@ See the below table to find out which version of the template to use.
|
|
|
41
41
|
|
|
42
42
|
| React Native | Template |
|
|
43
43
|
| ------------ | -------- |
|
|
44
|
+
| 0.82 | 1.0.55 |
|
|
44
45
|
| 0.81 | 1.0.51 |
|
|
45
46
|
| 0.80 | 1.0.49 |
|
|
46
47
|
| 0.79 | 1.0.43 |
|
package/package.json
CHANGED
|
@@ -5,31 +5,20 @@ import com.facebook.react.PackageList
|
|
|
5
5
|
import com.facebook.react.ReactApplication
|
|
6
6
|
import com.facebook.react.ReactHost
|
|
7
7
|
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
|
|
8
|
-
import com.facebook.react.ReactNativeHost
|
|
9
|
-
import com.facebook.react.ReactPackage
|
|
10
8
|
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
|
|
11
|
-
import com.facebook.react.defaults.DefaultReactNativeHost
|
|
12
9
|
|
|
13
10
|
class MainApplication : Application(), ReactApplication {
|
|
14
11
|
|
|
15
|
-
override val
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
override val reactHost: ReactHost by lazy {
|
|
13
|
+
getDefaultReactHost(
|
|
14
|
+
context = applicationContext,
|
|
15
|
+
packageList =
|
|
16
|
+
PackageList(this).packages.apply {
|
|
19
17
|
// Packages that cannot be autolinked yet can be added manually here, for example:
|
|
20
18
|
// add(MyReactNativePackage())
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
|
|
26
|
-
|
|
27
|
-
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
|
|
28
|
-
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
override val reactHost: ReactHost
|
|
32
|
-
get() = getDefaultReactHost(applicationContext, reactNativeHost)
|
|
19
|
+
},
|
|
20
|
+
)
|
|
21
|
+
}
|
|
33
22
|
|
|
34
23
|
override fun onCreate() {
|
|
35
24
|
super.onCreate()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
distributionBase=GRADLE_USER_HOME
|
|
2
2
|
distributionPath=wrapper/dists
|
|
3
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-
|
|
3
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
|
|
4
4
|
networkTimeout=10000
|
|
5
5
|
validateDistributionUrl=true
|
|
6
6
|
zipStoreBase=GRADLE_USER_HOME
|
package/template/android/gradlew
CHANGED
package/template/ios/Podfile
CHANGED
|
@@ -24,7 +24,6 @@ abstract_target 'ReactNativeTemplateCommonPods' do
|
|
|
24
24
|
)
|
|
25
25
|
|
|
26
26
|
post_install do |installer|
|
|
27
|
-
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
|
|
28
27
|
react_native_post_install(
|
|
29
28
|
installer,
|
|
30
29
|
config[:reactNativePath],
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
3
|
<plist version="1.0">
|
|
4
4
|
<dict>
|
|
5
|
+
<key>CADisableMinimumFrameDurationOnPhone</key>
|
|
6
|
+
<true/>
|
|
5
7
|
<key>CFBundleDevelopmentRegion</key>
|
|
6
8
|
<string>en</string>
|
|
7
9
|
<key>CFBundleDisplayName</key>
|
package/template/package.json
CHANGED
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"mobx": "6.13.7",
|
|
36
36
|
"mobx-react-lite": "4.1.0",
|
|
37
37
|
"patch-package": "^8.0.0",
|
|
38
|
-
"react": "19.1.
|
|
38
|
+
"react": "19.1.1",
|
|
39
39
|
"react-hook-form": "7.54.2",
|
|
40
40
|
"react-i18next": "15.4.1",
|
|
41
|
-
"react-native": "0.
|
|
41
|
+
"react-native": "0.82.0",
|
|
42
42
|
"react-native-bootsplash": "6.3.10",
|
|
43
43
|
"react-native-config": "1.5.3",
|
|
44
44
|
"react-native-mmkv": "^3.3.0",
|
|
@@ -54,13 +54,13 @@
|
|
|
54
54
|
"@react-native-community/cli": "20.0.0",
|
|
55
55
|
"@react-native-community/cli-platform-android": "20.0.0",
|
|
56
56
|
"@react-native-community/cli-platform-ios": "20.0.0",
|
|
57
|
-
"@react-native/babel-preset": "0.
|
|
58
|
-
"@react-native/eslint-config": "0.
|
|
59
|
-
"@react-native/metro-config": "0.
|
|
60
|
-
"@react-native/typescript-config": "0.
|
|
57
|
+
"@react-native/babel-preset": "0.82.0",
|
|
58
|
+
"@react-native/eslint-config": "0.82.0",
|
|
59
|
+
"@react-native/metro-config": "0.82.0",
|
|
60
|
+
"@react-native/typescript-config": "0.82.0",
|
|
61
61
|
"@types/jest": "^29.5.13",
|
|
62
62
|
"@types/metro-config": "^0.76.3",
|
|
63
|
-
"@types/react": "^19.1.
|
|
63
|
+
"@types/react": "^19.1.1",
|
|
64
64
|
"@types/react-test-renderer": "^19.1.0",
|
|
65
65
|
"@typescript-eslint/parser": "5.53.0",
|
|
66
66
|
"babel-plugin-module-resolver": "5.0.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"eslint-import-resolver-babel-module": "5.3.2",
|
|
69
69
|
"jest": "29.6.3",
|
|
70
70
|
"prettier": "2.8.8",
|
|
71
|
-
"react-test-renderer": "19.1.
|
|
71
|
+
"react-test-renderer": "19.1.1",
|
|
72
72
|
"typescript": "^5.8.3"
|
|
73
73
|
},
|
|
74
74
|
"engines": {
|