@computools/react-native-template-controller 1.0.33 → 1.0.34

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.77](https://reactnative.dev/blog/2025/01/21/version-0.77) 🎯
13
+ ### Latest supported RN version [0.78](https://github.com/facebook/react-native/releases/tag/v0.78.0) 🎯
14
14
 
15
15
  ### Precondition: 📗
16
16
 
@@ -20,7 +20,7 @@
20
20
 
21
21
  ### Usage: 🚛
22
22
  ```sh
23
- npx @react-native-community/cli init MyApp --template @computools/react-native-template-controller
23
+ npx @react-native-community/cli init MyApp --skip-install --template @computools/react-native-template-controller
24
24
  ```
25
25
 
26
26
  ### Preview: 😍
@@ -39,6 +39,7 @@ See the below table to find out which version of the template to use.
39
39
 
40
40
  | React Native | Template |
41
41
  | ------------ | -------- |
42
+ | 0.78 | 1.0.34 |
42
43
  | 0.77 | 1.0.33 |
43
44
  | 0.76 | 1.0.29 |
44
45
  | 0.75 | 1.0.24 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@computools/react-native-template-controller",
3
- "version": "1.0.33",
3
+ "version": "1.0.34",
4
4
  "description": "Computools react native template by using mobx as controllers",
5
5
  "main": "template.config.js",
6
6
  "scripts": {
@@ -33,6 +33,7 @@ local.properties
33
33
  .cxx/
34
34
  *.keystore
35
35
  !debug.keystore
36
+ .kotlin/
36
37
 
37
38
  # node.js
38
39
  #
@@ -3,7 +3,7 @@ buildscript {
3
3
  buildToolsVersion = "35.0.0"
4
4
  minSdkVersion = 24
5
5
  compileSdkVersion = 35
6
- targetSdkVersion = 34
6
+ targetSdkVersion = 35
7
7
  ndkVersion = "27.1.12297006"
8
8
  kotlinVersion = "2.0.21"
9
9
  }
@@ -1,6 +1,6 @@
1
1
  distributionBase=GRADLE_USER_HOME
2
2
  distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip
4
4
  networkTimeout=10000
5
5
  validateDistributionUrl=true
6
6
  zipStoreBase=GRADLE_USER_HOME
@@ -86,8 +86,7 @@ done
86
86
  # shellcheck disable=SC2034
87
87
  APP_BASE_NAME=${0##*/}
88
88
  # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
89
- APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90
- ' "$PWD" ) || exit
89
+ APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
91
90
 
92
91
  # Use the maximum available, or set MAX_FD != -1 to use that value.
93
92
  MAX_FD=maximum
@@ -23,7 +23,8 @@
23
23
  "apk:stage": "cd android && ./gradlew clean && ./gradlew assembleStagingRelease",
24
24
  "aab:dev": "cd android && ./gradlew clean && ./gradlew bundleDevelopmentRelease",
25
25
  "aab:prod": "cd android && ./gradlew clean && ./gradlew bundleProductionRelease",
26
- "aab:stage": "cd android && ./gradlew clean && ./gradlew bundleStagingRelease"
26
+ "aab:stage": "cd android && ./gradlew clean && ./gradlew bundleStagingRelease",
27
+ "postinstall": "patch-package"
27
28
  },
28
29
  "dependencies": {
29
30
  "@hookform/resolvers": "3.3.4",
@@ -33,15 +34,15 @@
33
34
  "i18next": "24.2.2",
34
35
  "mobx": "6.13.5",
35
36
  "mobx-react-lite": "4.1.0",
36
- "react": "18.3.1",
37
+ "react": "19.0.0",
37
38
  "react-hook-form": "7.54.2",
38
39
  "react-i18next": "15.4.0",
39
- "react-native": "0.77.0",
40
+ "react-native": "0.78.0",
40
41
  "react-native-bootsplash": "6.3.2",
41
42
  "react-native-config": "1.5.3",
42
43
  "react-native-mmkv": "3.2.0",
43
- "react-native-safe-area-context": "5.1.0",
44
- "react-native-screens": "4.5.0",
44
+ "react-native-safe-area-context": "5.2.0",
45
+ "react-native-screens": "4.9.0-beta.1",
45
46
  "react-native-svg": "15.11.1",
46
47
  "yup": "1.6.1"
47
48
  },
@@ -52,21 +53,22 @@
52
53
  "@react-native-community/cli": "15.0.1",
53
54
  "@react-native-community/cli-platform-android": "15.0.1",
54
55
  "@react-native-community/cli-platform-ios": "15.0.1",
55
- "@react-native/babel-preset": "0.77.0",
56
- "@react-native/eslint-config": "0.77.0",
57
- "@react-native/metro-config": "0.77.0",
58
- "@react-native/typescript-config": "0.77.0",
56
+ "@react-native/babel-preset": "0.78.0",
57
+ "@react-native/eslint-config": "0.78.0",
58
+ "@react-native/metro-config": "0.78.0",
59
+ "@react-native/typescript-config": "0.78.0",
59
60
  "@types/jest": "^29.5.13",
60
61
  "@types/metro-config": "^0.76.3",
61
- "@types/react": "18.2.6",
62
- "@types/react-test-renderer": "^18.0.0",
62
+ "@types/react": "19.0.0",
63
+ "@types/react-test-renderer": "19.0.0",
63
64
  "@typescript-eslint/parser": "5.53.0",
64
65
  "babel-plugin-module-resolver": "5.0.0",
65
66
  "eslint": "^8.19.0",
66
67
  "eslint-import-resolver-babel-module": "5.3.2",
67
68
  "jest": "29.6.3",
68
69
  "prettier": "2.8.8",
69
- "react-test-renderer": "18.3.1",
70
+ "patch-package": "8.0.0",
71
+ "react-test-renderer": "19.0.0",
70
72
  "typescript": "5.0.4"
71
73
  },
72
74
  "engines": {
@@ -0,0 +1,16 @@
1
+ diff --git a/node_modules/react-native-svg/common/cpp/react/renderer/components/rnsvg/RNSVGLayoutableShadowNode.cpp b/node_modules/react-native-svg/common/cpp/react/renderer/components/rnsvg/RNSVGLayoutableShadowNode.cpp
2
+ index a42fde9..7c66b93 100644
3
+ --- a/node_modules/react-native-svg/common/cpp/react/renderer/components/rnsvg/RNSVGLayoutableShadowNode.cpp
4
+ +++ b/node_modules/react-native-svg/common/cpp/react/renderer/components/rnsvg/RNSVGLayoutableShadowNode.cpp
5
+ @@ -24,7 +24,10 @@ void RNSVGLayoutableShadowNode::setZeroDimensions() {
6
+ // views in the layout inspector when Yoga attempts to interpret SVG
7
+ // properties like width when viewBox scale is set.
8
+ auto style = yogaNode_.style();
9
+ -#if REACT_NATIVE_MINOR_VERSION >= 77
10
+ +#if REACT_NATIVE_MINOR_VERSION >= 78
11
+ + style.setDimension(yoga::Dimension::Width, yoga::StyleSizeLength::points(0));
12
+ + style.setDimension(yoga::Dimension::Height, yoga::StyleSizeLength::points(0));
13
+ +#elif REACT_NATIVE_MINOR_VERSION >= 77
14
+ style.setDimension(yoga::Dimension::Width, yoga::StyleLength::points(0));
15
+ style.setDimension(yoga::Dimension::Height, yoga::StyleLength::points(0));
16
+ #else