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: example/README.md
+6-3
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ cd ..
34
34
35
35
## Step 2: Add your environment variables
36
36
In the _example app directory_, there is a file called **.env.example**. Make a
37
-
copy of this file, name it **.env** and place it in the exampe app directory.
37
+
copy of this file, name it **.env** and place it in the example app directory.
38
38
39
39
In it, you will find:
40
40
@@ -66,15 +66,15 @@ To add an API key, do the following:
66
66
67
67
First, you will need to start **Metro**, the JavaScript _bundler_ that ships _with_ React Native.
68
68
69
-
To start Metro, run the following command from the _root_ of your React Native project:
69
+
To start Metro, run the following command from the _example app directory_:
70
70
71
71
```bash
72
72
yarn start
73
73
```
74
74
75
75
## Step 4: Start your Application
76
76
77
-
Let Metro Bundler run in its _own_ terminal. Open a _new_ terminal from the _root_ of your React Native project. Run the following command to start your _Android_ or _iOS_ app:
77
+
Let Metro Bundler run in its _own_ terminal. Open a _new_ terminal from the _example app directory_. Run the following command to start your _Android_ or _iOS_ app:
78
78
79
79
### For Android
80
80
@@ -88,6 +88,9 @@ yarn android
88
88
yarn ios
89
89
```
90
90
91
+
**NOTE**: If you are getting an error when running ios, make sure that *Xcode > Project Navigator > ReactNativeSdkExample > Build Settings > User
92
+
Script Sandboxing* is set to **No**
93
+
91
94
If everything is set up _correctly_, you should see your new app running in your _Android Emulator_ or _iOS Simulator_ shortly provided you have set up your emulator/simulator correctly.
92
95
93
96
This is one way to run your app — you can also run it directly from within Android Studio and Xcode respectively.
0 commit comments