You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+59-13Lines changed: 59 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
> A React Native boilerplate app to bootstrap your next app with Redux Toolkit and Saga!
4
4
5
-
## 🔥🔥🔥 Upgraded to the latest React-Native (> 0.69.x) with brand New Architecture (Fabric) 🔥🔥🔥
5
+
## 🔥🔥🔥 Upgraded to the latest React-Native (> 0.72.x) with brand New Architecture (Fabric) 🔥🔥🔥
6
6
7
7
<br/>
8
8
<divalign="center">
@@ -27,19 +27,20 @@
27
27
28
28
# Table of Contents <!-- omit in toc -->
29
29
30
-
-[🔥🔥🔥 Upgraded to the latest React-Native (> 0.69.x) with brand New Architecture (Fabric) 🔥🔥🔥](#-upgraded-to-the-latest-react-native--069x-with-brand-new-architecture-fabric-)
30
+
-[🔥🔥🔥 Upgraded to the latest React-Native (\> 0.72.x) with brand New Architecture (Fabric) 🔥🔥🔥](#-upgraded-to-the-latest-react-native--072x-with-brand-new-architecture-fabric-)
31
31
-[🔥🔥 Checkout also my brand new React Native React-Query (no redux toolkit) here 🔥🔥](#-checkout-also-my-brand-new-react-native-react-query-no-redux-toolkit-here-)
@@ -95,6 +96,14 @@ If you want to use IDEs such Xcode or Android Studio, you have to set up the ENV
95
96
-`yarn env:stage`, to set the staging ENV variables
96
97
-`yarn env:prod`, to set the production ENV variables
97
98
99
+
If you want to use this in any file, just:
100
+
101
+
`import env from '@env';`
102
+
103
+
and use like this:
104
+
105
+
`env.API_URL`
106
+
98
107
---
99
108
100
109
## Scripts :wrench:
@@ -111,6 +120,24 @@ To run the app use one of the following scripts:
111
120
-`yarn ios:stage`, to start the app on iOS with the `staging` environment variables.
112
121
-`yarn ios:prod`, to start the app on iOS with the `production` environment variables.
113
122
123
+
If using the `ios` commands you will receive an error like this:
124
+
125
+
<imgsrc="./docs/error.png"maxWidth="700px" />
126
+
127
+
Just do the following steps:
128
+
129
+
- Launch Xcode
130
+
- Settings
131
+
- Locations
132
+
133
+
Make sure there's a dropdown option selected for the command line tools
134
+
NOTE: Even if you're seeing Command Line Tools dropdown being selected with proper version, you might want to re-select it again. It will ask for login password.
_REMEMBER: The Command Line Tools should be the latest one or the one matching your Xcode version_
139
+
140
+
114
141
### Generate app icons
115
142
116
143
To setup the app icons:
@@ -125,16 +152,29 @@ yarn assets:icons
125
152
126
153
### Generate Splashscreen
127
154
128
-
To setup the app splashscreen:
155
+
To setup the iOS app splashscreen:
129
156
130
157
- create an image at least `1242x2208px`
131
-
- place it under `/assets` folder as `splashscreen.png`
158
+
- place it under `/assets` folder as `ios_splashscreen.png`
132
159
- run
133
160
134
161
```sh
135
-
yarn assets:splashscreen
162
+
yarn assets:splashscreen:ios
136
163
```
137
164
165
+
To setup the Android app splashscreen:
166
+
167
+
- create an image at least `150x134px`
168
+
- place it under `/assets` folder as `android_splashscreen.png`
169
+
- run
170
+
171
+
```sh
172
+
yarn assets:splashscreen:android
173
+
```
174
+
175
+
If you want to customize the output icon, open the `package.json` file and customized the backgtound color, size, ..... in the following command `assets:splashscreen:android`
176
+
177
+
138
178
### To enabled React-Native (Fabric) new architecture
139
179
140
180
Check the official documentation [here](https://reactnative.dev/docs/new-architecture-intro)
@@ -169,17 +209,24 @@ _REMEMBER: the entry point file in the root of the project MUST be index.js_
If running this script `dependencies:graph`, you get this error:
215
+
`Error: Graphviz could not be found. Ensure that "gvpr" is in your $PATH`
216
+
217
+
If you are on a Mac: `brew install graphviz`
218
+
On Windows, after installation, do this: <imgsrc="https://user-images.githubusercontent.com/24865815/91755813-b8224a00-eb99-11ea-9489-10973000c043.png"maxWidth="700px" />
0 commit comments