@computools/react-native-template-controller 1.0.54 → 1.0.56

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 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.4](https://github.com/facebook/react-native/releases/tag/v0.81.4) 🎯
13
+ ### Latest supported RN version [0.82.1](https://github.com/facebook/react-native/releases/tag/v0.82.1) 🎯
14
14
 
15
15
  ### Precondition: 📗
16
16
 
@@ -21,6 +21,7 @@
21
21
  `java` >= 17
22
22
 
23
23
  ### Usage: 🚛
24
+
24
25
  ```sh
25
26
  npx @react-native-community/cli init MyApp --template @computools/react-native-template-controller
26
27
  ```
@@ -41,6 +42,7 @@ See the below table to find out which version of the template to use.
41
42
 
42
43
  | React Native | Template |
43
44
  | ------------ | -------- |
45
+ | 0.82 | 1.0.55 |
44
46
  | 0.81 | 1.0.51 |
45
47
  | 0.80 | 1.0.49 |
46
48
  | 0.79 | 1.0.43 |
@@ -53,6 +55,5 @@ See the below table to find out which version of the template to use.
53
55
  | 0.72 | 1.0.0 |
54
56
  | 0.71 | 0.0.7 |
55
57
 
56
-
57
- [preview]: <https://ik.imagekit.io/computools/template-snapshots/rn-template.gif>
58
- [envs_preview]: <https://ik.imagekit.io/computools/template-snapshots/template-env.png>
58
+ [preview]: https://ik.imagekit.io/computools/template-snapshots/rn-template.gif
59
+ [envs_preview]: https://ik.imagekit.io/computools/template-snapshots/template-env.png
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@computools/react-native-template-controller",
3
- "version": "1.0.54",
3
+ "version": "1.0.56",
4
4
  "description": "Computools react native template by using mobx as controllers",
5
5
  "main": "template.config.js",
6
6
  "scripts": {
@@ -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 reactNativeHost: ReactNativeHost =
16
- object : DefaultReactNativeHost(this) {
17
- override fun getPackages(): List<ReactPackage> =
18
- PackageList(this).packages.apply {
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
- override fun getJSMainModuleName(): String = "index"
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-8.14.3-bin.zip
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
@@ -1,7 +1,7 @@
1
1
  #!/bin/sh
2
2
 
3
3
  #
4
- # Copyright © 2015-2021 the original authors.
4
+ # Copyright © 2015 the original authors.
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -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>
@@ -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.0",
38
+ "react": "19.1.1",
39
39
  "react-hook-form": "7.54.2",
40
40
  "react-i18next": "15.4.1",
41
- "react-native": "0.81.4",
41
+ "react-native": "0.82.1",
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.81.4",
58
- "@react-native/eslint-config": "0.81.4",
59
- "@react-native/metro-config": "0.81.4",
60
- "@react-native/typescript-config": "0.81.4",
57
+ "@react-native/babel-preset": "0.82.1",
58
+ "@react-native/eslint-config": "0.82.1",
59
+ "@react-native/metro-config": "0.82.1",
60
+ "@react-native/typescript-config": "0.82.1",
61
61
  "@types/jest": "^29.5.13",
62
62
  "@types/metro-config": "^0.76.3",
63
- "@types/react": "^19.1.0",
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.0",
71
+ "react-test-renderer": "19.1.1",
72
72
  "typescript": "^5.8.3"
73
73
  },
74
74
  "engines": {