nx-react-native-cli 2.6.12 → 2.7.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/lib/index.cjs +43 -43
- package/package.json +1 -1
- package/templates/19.7.0/apps/mobile/.ignorefile +1 -0
- package/templates/19.7.0/apps/mobile/android/app/src/main/java/com/appsmobile/MainActivity.kt +5 -1
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/AppDelegate.mm +6 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-20@2x.png +0 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-20@2x~ipad.png +0 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-20@3x.png +0 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-20~ipad.png +0 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-29.png +0 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-29@2x.png +0 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-29@2x~ipad.png +0 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-29@3x.png +0 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-29~ipad.png +0 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-40@2x.png +0 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-40@2x~ipad.png +0 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-40@3x.png +0 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-40~ipad.png +0 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-60@2x~car.png +0 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-60@3x~car.png +0 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-83.5@2x~ipad.png +0 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon@2x.png +0 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon@2x~ipad.png +0 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon@3x.png +0 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon~ios-marketing.png +0 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon~ipad.png +0 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/Contents.json +134 -0
- package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/Contents.json +6 -0
- package/templates/19.7.0/apps/mobile/project.json +17 -19
- package/templates/21.2.2/apps/mobile/.ignorefile +1 -0
- package/templates/21.2.2/apps/mobile/android/app/src/main/java/com/mobile/MainActivity.kt +5 -1
- package/templates/21.2.2/apps/mobile/ios/Mobile/AppDelegate.mm +6 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-20@2x.png +0 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-20@2x~ipad.png +0 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-20@3x.png +0 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-20~ipad.png +0 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-29.png +0 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-29@2x.png +0 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-29@2x~ipad.png +0 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-29@3x.png +0 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-29~ipad.png +0 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-40@2x.png +0 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-40@2x~ipad.png +0 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-40@3x.png +0 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-40~ipad.png +0 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-60@2x~car.png +0 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-60@3x~car.png +0 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-83.5@2x~ipad.png +0 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon@2x.png +0 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon@2x~ipad.png +0 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon@3x.png +0 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon~ios-marketing.png +0 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon~ipad.png +0 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/Contents.json +134 -0
- package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/Contents.json +6 -0
- package/templates/21.2.2/apps/mobile/project.json +17 -19
- package/templates/shared/.ignorefile +1 -0
- package/templates/shared/apps/mobile/android/app/src/main/AndroidManifest.xml +28 -0
- package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +6 -0
- package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png +0 -0
- package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png +0 -0
- package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.png +0 -0
- package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png +0 -0
- package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png +0 -0
- package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.png +0 -0
- package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png +0 -0
- package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
- package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png +0 -0
- package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png +0 -0
- package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
- package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png +0 -0
- package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png +0 -0
- package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
- package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png +0 -0
- package/templates/shared/apps/mobile/android/app/src/main/res/styles.xml +14 -0
- package/templates/shared/apps/mobile/deploy.sh +107 -0
- package/templates/shared/apps/mobile/package.json +1 -78
- package/templates/shared/apps/mobile/picker.sh +151 -0
- package/templates/shared/apps/mobile/pod-install.sh +40 -0
- package/templates/shared/apps/mobile/react-native.config.js +15 -0
- package/templates/shared/apps/mobile/run-android.sh +131 -0
- package/templates/shared/apps/mobile/run-ios.sh +89 -0
- package/templates/shared/apps/mobile/scripts/setup-ios-dev-scheme.rb +101 -1
- package/templates/shared/apps/mobile/src/app/index.tsx +3 -39
- package/templates/shared/apps/mobile/src/app/query-client.ts +40 -0
- package/templates/shared/apps/mobile/src/assets/images/logo.png +0 -0
- package/templates/shared/apps/mobile/src/components/atoms/KeyboardAwareScrollView/keyboard-aware-scroll-view.component.tsx +1 -0
- package/templates/shared/apps/mobile/src/components/atoms/Modal/modal.component.tsx +19 -6
- package/templates/shared/apps/mobile/src/components/atoms/Typography/typography.component.tsx +1 -1
- package/templates/shared/apps/mobile/src/components/molecules/ScreenContainer/screen-container.component.tsx +2 -2
- package/templates/shared/apps/mobile/src/components/molecules/ScreenHeader/screen-header.component.tsx +1 -1
- package/templates/shared/apps/mobile/src/routes/index.tsx +7 -1
- package/templates/shared/clean-generated-outputs.sh +4 -0
- package/templates/shared/apps/mobile/src/assets/images/.gitkeep +0 -0
package/package.json
CHANGED
package/templates/19.7.0/apps/mobile/android/app/src/main/java/com/appsmobile/MainActivity.kt
CHANGED
|
@@ -5,6 +5,8 @@ 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
|
|
9
|
+
import com.zoontek.rnbootsplash.RNBootSplash
|
|
8
10
|
import android.graphics.Color
|
|
9
11
|
import androidx.core.view.WindowCompat
|
|
10
12
|
import androidx.core.view.WindowInsetsControllerCompat
|
|
@@ -19,7 +21,9 @@ class MainActivity : ReactActivity() {
|
|
|
19
21
|
|
|
20
22
|
//react-native-screens override
|
|
21
23
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
22
|
-
|
|
24
|
+
supportFragmentManager.fragmentFactory = RNScreensFragmentFactory()
|
|
25
|
+
RNBootSplash.init(this, R.style.BootTheme) // ⬅️ initialize the splash screen
|
|
26
|
+
super.onCreate(savedInstanceState)
|
|
23
27
|
|
|
24
28
|
// 1) Let your content draw behind system bars (status + nav)
|
|
25
29
|
WindowCompat.setDecorFitsSystemWindows(window, false)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#import "AppDelegate.h"
|
|
2
|
+
#import "RNBootSplash.h"
|
|
2
3
|
|
|
3
4
|
#import <React/RCTBundleURLProvider.h>
|
|
4
5
|
#import <ReactAppDependencyProvider/RCTAppDependencyProvider.h>
|
|
@@ -50,4 +51,9 @@
|
|
|
50
51
|
return YES;
|
|
51
52
|
}
|
|
52
53
|
|
|
54
|
+
- (void)customizeRootView:(RCTRootView *)rootView {
|
|
55
|
+
[super customizeRootView:rootView];
|
|
56
|
+
[RNBootSplash initWithStoryboard:@"BootSplash" rootView:rootView]; // ⬅️ initialize the splash screen
|
|
57
|
+
}
|
|
58
|
+
|
|
53
59
|
@end
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/Contents.json
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
{
|
|
2
|
+
"images": [
|
|
3
|
+
{
|
|
4
|
+
"filename": "AppIcon@2x.png",
|
|
5
|
+
"idiom": "iphone",
|
|
6
|
+
"scale": "2x",
|
|
7
|
+
"size": "60x60"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"filename": "AppIcon@3x.png",
|
|
11
|
+
"idiom": "iphone",
|
|
12
|
+
"scale": "3x",
|
|
13
|
+
"size": "60x60"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"filename": "AppIcon~ipad.png",
|
|
17
|
+
"idiom": "ipad",
|
|
18
|
+
"scale": "1x",
|
|
19
|
+
"size": "76x76"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"filename": "AppIcon@2x~ipad.png",
|
|
23
|
+
"idiom": "ipad",
|
|
24
|
+
"scale": "2x",
|
|
25
|
+
"size": "76x76"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"filename": "AppIcon-83.5@2x~ipad.png",
|
|
29
|
+
"idiom": "ipad",
|
|
30
|
+
"scale": "2x",
|
|
31
|
+
"size": "83.5x83.5"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"filename": "AppIcon-40@2x.png",
|
|
35
|
+
"idiom": "iphone",
|
|
36
|
+
"scale": "2x",
|
|
37
|
+
"size": "40x40"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"filename": "AppIcon-40@3x.png",
|
|
41
|
+
"idiom": "iphone",
|
|
42
|
+
"scale": "3x",
|
|
43
|
+
"size": "40x40"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"filename": "AppIcon-40~ipad.png",
|
|
47
|
+
"idiom": "ipad",
|
|
48
|
+
"scale": "1x",
|
|
49
|
+
"size": "40x40"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"filename": "AppIcon-40@2x~ipad.png",
|
|
53
|
+
"idiom": "ipad",
|
|
54
|
+
"scale": "2x",
|
|
55
|
+
"size": "40x40"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"filename": "AppIcon-20@2x.png",
|
|
59
|
+
"idiom": "iphone",
|
|
60
|
+
"scale": "2x",
|
|
61
|
+
"size": "20x20"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"filename": "AppIcon-20@3x.png",
|
|
65
|
+
"idiom": "iphone",
|
|
66
|
+
"scale": "3x",
|
|
67
|
+
"size": "20x20"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"filename": "AppIcon-20~ipad.png",
|
|
71
|
+
"idiom": "ipad",
|
|
72
|
+
"scale": "1x",
|
|
73
|
+
"size": "20x20"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"filename": "AppIcon-20@2x~ipad.png",
|
|
77
|
+
"idiom": "ipad",
|
|
78
|
+
"scale": "2x",
|
|
79
|
+
"size": "20x20"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"filename": "AppIcon-29.png",
|
|
83
|
+
"idiom": "iphone",
|
|
84
|
+
"scale": "1x",
|
|
85
|
+
"size": "29x29"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"filename": "AppIcon-29@2x.png",
|
|
89
|
+
"idiom": "iphone",
|
|
90
|
+
"scale": "2x",
|
|
91
|
+
"size": "29x29"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"filename": "AppIcon-29@3x.png",
|
|
95
|
+
"idiom": "iphone",
|
|
96
|
+
"scale": "3x",
|
|
97
|
+
"size": "29x29"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"filename": "AppIcon-29~ipad.png",
|
|
101
|
+
"idiom": "ipad",
|
|
102
|
+
"scale": "1x",
|
|
103
|
+
"size": "29x29"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"filename": "AppIcon-29@2x~ipad.png",
|
|
107
|
+
"idiom": "ipad",
|
|
108
|
+
"scale": "2x",
|
|
109
|
+
"size": "29x29"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"filename": "AppIcon-60@2x~car.png",
|
|
113
|
+
"idiom": "car",
|
|
114
|
+
"scale": "2x",
|
|
115
|
+
"size": "60x60"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"filename": "AppIcon-60@3x~car.png",
|
|
119
|
+
"idiom": "car",
|
|
120
|
+
"scale": "3x",
|
|
121
|
+
"size": "60x60"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"filename": "AppIcon~ios-marketing.png",
|
|
125
|
+
"idiom": "ios-marketing",
|
|
126
|
+
"scale": "1x",
|
|
127
|
+
"size": "1024x1024"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"info": {
|
|
131
|
+
"author": "iconkitchen",
|
|
132
|
+
"version": 1
|
|
133
|
+
}
|
|
134
|
+
}
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
"// targets": "to see all targets run: nx show project mobile --web",
|
|
8
8
|
"targets": {
|
|
9
9
|
"check-env": {
|
|
10
|
-
"executor": "nx:run-
|
|
10
|
+
"executor": "nx:run-commands",
|
|
11
11
|
"options": {
|
|
12
|
-
"
|
|
12
|
+
"command": "./check-env.sh apps/mobile/.env apps/mobile/.env.template"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"start": {
|
|
16
16
|
"executor": "@nx/react-native:start",
|
|
17
|
-
"dependsOn": ["check-env", "
|
|
17
|
+
"dependsOn": ["check-env", "pod-install"],
|
|
18
18
|
"options": {
|
|
19
19
|
"port": 8081,
|
|
20
20
|
"resetCache": true,
|
|
@@ -28,9 +28,11 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"run-ios": {
|
|
31
|
-
"executor": "
|
|
31
|
+
"executor": "nx:run-commands",
|
|
32
32
|
"dependsOn": ["pod-install"],
|
|
33
|
-
"options": {
|
|
33
|
+
"options": {
|
|
34
|
+
"command": "cd apps/mobile && ./run-ios.sh"
|
|
35
|
+
}
|
|
34
36
|
},
|
|
35
37
|
"bundle-ios": {
|
|
36
38
|
"executor": "@nx/react-native:bundle",
|
|
@@ -43,12 +45,10 @@
|
|
|
43
45
|
}
|
|
44
46
|
},
|
|
45
47
|
"run-android": {
|
|
46
|
-
"executor": "
|
|
48
|
+
"executor": "nx:run-commands",
|
|
47
49
|
"dependsOn": [],
|
|
48
50
|
"options": {
|
|
49
|
-
"
|
|
50
|
-
"mode": "debug",
|
|
51
|
-
"tasks": "installDevDebug"
|
|
51
|
+
"command": "cd apps/mobile && ./run-android.sh"
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"build-android": {
|
|
@@ -67,9 +67,15 @@
|
|
|
67
67
|
"options": {}
|
|
68
68
|
},
|
|
69
69
|
"pod-install": {
|
|
70
|
-
"executor": "nx:run-
|
|
70
|
+
"executor": "nx:run-commands",
|
|
71
71
|
"options": {
|
|
72
|
-
"
|
|
72
|
+
"command": "cd apps/mobile && ./pod-install.sh"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"pod-install:force": {
|
|
76
|
+
"executor": "nx:run-commands",
|
|
77
|
+
"options": {
|
|
78
|
+
"command": "cd apps/mobile && ./ios-only.sh 'cd ios && bundle install && bundle exec pod install --repo-update && cd .. && ./export-node-binary.sh'"
|
|
73
79
|
}
|
|
74
80
|
},
|
|
75
81
|
"bundle-android": {
|
|
@@ -82,14 +88,6 @@
|
|
|
82
88
|
"bundleOutput": "dist/apps/mobile/android/main.jsbundle"
|
|
83
89
|
}
|
|
84
90
|
},
|
|
85
|
-
"sync-deps": {
|
|
86
|
-
"executor": "@nx/react-native:sync-deps",
|
|
87
|
-
"options": {}
|
|
88
|
-
},
|
|
89
|
-
"ensure-symlink": {
|
|
90
|
-
"executor": "@nx/react-native:ensure-symlink",
|
|
91
|
-
"options": {}
|
|
92
|
-
},
|
|
93
91
|
"lint": {
|
|
94
92
|
"executor": "@nx/eslint:lint",
|
|
95
93
|
"outputs": ["{options.outputFile}"],
|
|
@@ -5,6 +5,8 @@ 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
|
|
9
|
+
import com.zoontek.rnbootsplash.RNBootSplash
|
|
8
10
|
import android.graphics.Color
|
|
9
11
|
import androidx.core.view.WindowCompat
|
|
10
12
|
import androidx.core.view.WindowInsetsControllerCompat
|
|
@@ -19,7 +21,9 @@ class MainActivity : ReactActivity() {
|
|
|
19
21
|
|
|
20
22
|
//react-native-screens override
|
|
21
23
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
22
|
-
|
|
24
|
+
supportFragmentManager.fragmentFactory = RNScreensFragmentFactory()
|
|
25
|
+
RNBootSplash.init(this, R.style.BootTheme) // ⬅️ initialize the splash screen
|
|
26
|
+
super.onCreate(savedInstanceState)
|
|
23
27
|
|
|
24
28
|
// 1) Let your content draw behind system bars (status + nav)
|
|
25
29
|
WindowCompat.setDecorFitsSystemWindows(window, false)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#import "AppDelegate.h"
|
|
2
|
+
#import "RNBootSplash.h"
|
|
2
3
|
|
|
3
4
|
#import <React/RCTBundleURLProvider.h>
|
|
4
5
|
#import <ReactAppDependencyProvider/RCTAppDependencyProvider.h>
|
|
@@ -50,4 +51,9 @@
|
|
|
50
51
|
return YES;
|
|
51
52
|
}
|
|
52
53
|
|
|
54
|
+
- (void)customizeRootView:(RCTRootView *)rootView {
|
|
55
|
+
[super customizeRootView:rootView];
|
|
56
|
+
[RNBootSplash initWithStoryboard:@"BootSplash" rootView:rootView]; // ⬅️ initialize the splash screen
|
|
57
|
+
}
|
|
58
|
+
|
|
53
59
|
@end
|
package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-20@2x.png
ADDED
|
Binary file
|
|
Binary file
|
package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-20@3x.png
ADDED
|
Binary file
|
|
Binary file
|
package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-29.png
ADDED
|
Binary file
|
package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-29@2x.png
ADDED
|
Binary file
|
|
Binary file
|
package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-29@3x.png
ADDED
|
Binary file
|
|
Binary file
|
package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-40@2x.png
ADDED
|
Binary file
|
|
Binary file
|
package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-40@3x.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon@2x.png
ADDED
|
Binary file
|
|
Binary file
|
package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon@3x.png
ADDED
|
Binary file
|
|
Binary file
|
package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon~ipad.png
ADDED
|
Binary file
|
package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/Contents.json
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
{
|
|
2
|
+
"images": [
|
|
3
|
+
{
|
|
4
|
+
"filename": "AppIcon@2x.png",
|
|
5
|
+
"idiom": "iphone",
|
|
6
|
+
"scale": "2x",
|
|
7
|
+
"size": "60x60"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"filename": "AppIcon@3x.png",
|
|
11
|
+
"idiom": "iphone",
|
|
12
|
+
"scale": "3x",
|
|
13
|
+
"size": "60x60"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"filename": "AppIcon~ipad.png",
|
|
17
|
+
"idiom": "ipad",
|
|
18
|
+
"scale": "1x",
|
|
19
|
+
"size": "76x76"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"filename": "AppIcon@2x~ipad.png",
|
|
23
|
+
"idiom": "ipad",
|
|
24
|
+
"scale": "2x",
|
|
25
|
+
"size": "76x76"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"filename": "AppIcon-83.5@2x~ipad.png",
|
|
29
|
+
"idiom": "ipad",
|
|
30
|
+
"scale": "2x",
|
|
31
|
+
"size": "83.5x83.5"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"filename": "AppIcon-40@2x.png",
|
|
35
|
+
"idiom": "iphone",
|
|
36
|
+
"scale": "2x",
|
|
37
|
+
"size": "40x40"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"filename": "AppIcon-40@3x.png",
|
|
41
|
+
"idiom": "iphone",
|
|
42
|
+
"scale": "3x",
|
|
43
|
+
"size": "40x40"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"filename": "AppIcon-40~ipad.png",
|
|
47
|
+
"idiom": "ipad",
|
|
48
|
+
"scale": "1x",
|
|
49
|
+
"size": "40x40"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"filename": "AppIcon-40@2x~ipad.png",
|
|
53
|
+
"idiom": "ipad",
|
|
54
|
+
"scale": "2x",
|
|
55
|
+
"size": "40x40"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"filename": "AppIcon-20@2x.png",
|
|
59
|
+
"idiom": "iphone",
|
|
60
|
+
"scale": "2x",
|
|
61
|
+
"size": "20x20"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"filename": "AppIcon-20@3x.png",
|
|
65
|
+
"idiom": "iphone",
|
|
66
|
+
"scale": "3x",
|
|
67
|
+
"size": "20x20"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"filename": "AppIcon-20~ipad.png",
|
|
71
|
+
"idiom": "ipad",
|
|
72
|
+
"scale": "1x",
|
|
73
|
+
"size": "20x20"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"filename": "AppIcon-20@2x~ipad.png",
|
|
77
|
+
"idiom": "ipad",
|
|
78
|
+
"scale": "2x",
|
|
79
|
+
"size": "20x20"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"filename": "AppIcon-29.png",
|
|
83
|
+
"idiom": "iphone",
|
|
84
|
+
"scale": "1x",
|
|
85
|
+
"size": "29x29"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"filename": "AppIcon-29@2x.png",
|
|
89
|
+
"idiom": "iphone",
|
|
90
|
+
"scale": "2x",
|
|
91
|
+
"size": "29x29"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"filename": "AppIcon-29@3x.png",
|
|
95
|
+
"idiom": "iphone",
|
|
96
|
+
"scale": "3x",
|
|
97
|
+
"size": "29x29"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"filename": "AppIcon-29~ipad.png",
|
|
101
|
+
"idiom": "ipad",
|
|
102
|
+
"scale": "1x",
|
|
103
|
+
"size": "29x29"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"filename": "AppIcon-29@2x~ipad.png",
|
|
107
|
+
"idiom": "ipad",
|
|
108
|
+
"scale": "2x",
|
|
109
|
+
"size": "29x29"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"filename": "AppIcon-60@2x~car.png",
|
|
113
|
+
"idiom": "car",
|
|
114
|
+
"scale": "2x",
|
|
115
|
+
"size": "60x60"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"filename": "AppIcon-60@3x~car.png",
|
|
119
|
+
"idiom": "car",
|
|
120
|
+
"scale": "3x",
|
|
121
|
+
"size": "60x60"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"filename": "AppIcon~ios-marketing.png",
|
|
125
|
+
"idiom": "ios-marketing",
|
|
126
|
+
"scale": "1x",
|
|
127
|
+
"size": "1024x1024"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"info": {
|
|
131
|
+
"author": "iconkitchen",
|
|
132
|
+
"version": 1
|
|
133
|
+
}
|
|
134
|
+
}
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
"// targets": "to see all targets run: nx show project mobile --web",
|
|
8
8
|
"targets": {
|
|
9
9
|
"check-env": {
|
|
10
|
-
"executor": "nx:run-
|
|
10
|
+
"executor": "nx:run-commands",
|
|
11
11
|
"options": {
|
|
12
|
-
"
|
|
12
|
+
"command": "./check-env.sh apps/mobile/.env apps/mobile/.env.template"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"start": {
|
|
16
16
|
"executor": "@nx/react-native:start",
|
|
17
|
-
"dependsOn": ["check-env", "
|
|
17
|
+
"dependsOn": ["check-env", "pod-install"],
|
|
18
18
|
"options": {
|
|
19
19
|
"port": 8081,
|
|
20
20
|
"resetCache": true,
|
|
@@ -28,9 +28,11 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"run-ios": {
|
|
31
|
-
"executor": "
|
|
31
|
+
"executor": "nx:run-commands",
|
|
32
32
|
"dependsOn": ["pod-install"],
|
|
33
|
-
"options": {
|
|
33
|
+
"options": {
|
|
34
|
+
"command": "cd apps/mobile && ./run-ios.sh"
|
|
35
|
+
}
|
|
34
36
|
},
|
|
35
37
|
"bundle-ios": {
|
|
36
38
|
"executor": "@nx/react-native:bundle",
|
|
@@ -43,12 +45,10 @@
|
|
|
43
45
|
}
|
|
44
46
|
},
|
|
45
47
|
"run-android": {
|
|
46
|
-
"executor": "
|
|
48
|
+
"executor": "nx:run-commands",
|
|
47
49
|
"dependsOn": [],
|
|
48
50
|
"options": {
|
|
49
|
-
"
|
|
50
|
-
"mode": "debug",
|
|
51
|
-
"tasks": "installDevDebug"
|
|
51
|
+
"command": "cd apps/mobile && ./run-android.sh"
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"build-android": {
|
|
@@ -67,9 +67,15 @@
|
|
|
67
67
|
"options": {}
|
|
68
68
|
},
|
|
69
69
|
"pod-install": {
|
|
70
|
-
"executor": "nx:run-
|
|
70
|
+
"executor": "nx:run-commands",
|
|
71
71
|
"options": {
|
|
72
|
-
"
|
|
72
|
+
"command": "cd apps/mobile && ./pod-install.sh"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"pod-install:force": {
|
|
76
|
+
"executor": "nx:run-commands",
|
|
77
|
+
"options": {
|
|
78
|
+
"command": "cd apps/mobile && ./ios-only.sh 'cd ios && bundle install && bundle exec pod install --repo-update && cd .. && ./export-node-binary.sh'"
|
|
73
79
|
}
|
|
74
80
|
},
|
|
75
81
|
"bundle-android": {
|
|
@@ -82,14 +88,6 @@
|
|
|
82
88
|
"bundleOutput": "dist/apps/mobile/android/main.jsbundle"
|
|
83
89
|
}
|
|
84
90
|
},
|
|
85
|
-
"sync-deps": {
|
|
86
|
-
"executor": "@nx/react-native:sync-deps",
|
|
87
|
-
"options": {}
|
|
88
|
-
},
|
|
89
|
-
"ensure-symlink": {
|
|
90
|
-
"executor": "@nx/react-native:ensure-symlink",
|
|
91
|
-
"options": {}
|
|
92
|
-
},
|
|
93
91
|
"lint": {
|
|
94
92
|
"executor": "@nx/eslint:lint",
|
|
95
93
|
"outputs": ["{options.outputFile}"],
|