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
It is a template that you can clone and reuse for every project. It is starting point for React Native application.
4
+
5
+
It is a template that you can clone and reuse for every project. It is starting point for React Native application.
5
6
6
7
## React Native Boilerplate
7
8
8
9
consist of:
9
10
10
-
- react-native": "0.63.4"
11
+
- react-native": "0.64.0"
11
12
- react-navigation and its dependencies
12
13
- redux, redux persist and redux thunk
13
14
- react native vector icons
@@ -20,7 +21,24 @@ consist of:
20
21
3. Remove `.git` folder, `rm -rf .git`
21
22
4. Use [React Native Rename](https://github.com/junedomingo/react-native-rename) to update project name `$ npx react-native-rename <newName>`
22
23
5. Run `npm install` to install dependencies
23
-
6. Run `npx pod-install` from root of your project
24
+
6. Run `npx pod-install` from root of your project.
25
+
26
+
If you got error like: `The version of CocoaPods used to generate the lockfile (x.x.x) is higher than the version of the current executable (x.x.x)`, then you can upgrade your cocoapods version.
27
+
28
+
If you install cocoapods using homebrew, you can using this command: `brew upgrade cocoapods` if that does not work, try `brew install cocoapods`.
29
+
30
+
If you previously install using `gem`, then use this command and run on your terminal: `sudo gem install cocoapods`.
31
+
32
+
make sure your cocoapods version is updated after run that command.
33
+
34
+
To check your current version of cocoapods, run `pod --version`.
35
+
36
+
After that, don't forget to execute in your terminal `pod repo update`
37
+
38
+
And, finally, run `npx pod-install`. Those methods must be solved that problem.
39
+
40
+
Last method: If All the above steps not work, remove `Podfile.lock` in folder `ios` , and then run `npx pod-install`.
41
+
24
42
7. Start the packager with `npm start`
25
43
8. Connect your device or use emulator that's installed in your pc
26
44
9. Run the test application:
@@ -34,18 +52,20 @@ consist of:
34
52
35
53
## List of Q & A:
36
54
37
-
#### I got error `Error: spawn ./gradlew EACCES` when run `npx react-native run-android`.
38
-
Run this command `chmod 755 android/gradlew` from your root project directory
55
+
#### I got error `Error: spawn ./gradlew EACCES` when run `npx react-native run-android`.
56
+
57
+
Run this command `chmod 755 android/gradlew` from your root project directory
58
+
59
+
#### I got error `Error: SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.`
39
60
40
-
#### I got error `Error: SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.`
41
-
- Go to your Project -> Android
42
-
- Create a file local.properties
43
-
- Open the file
44
-
- Paste your Android SDK path depending on the operating system:
61
+
- Go to your Project -> Android
62
+
- Create a file local.properties
63
+
- Open the file
64
+
- Paste your Android SDK path depending on the operating system:
0 commit comments