Skip to content

Commit cd4e56a

Browse files
mkonicekcharpeni
authored andcommitted
Small tweak in 'Integration with existing apps' (#208)
Just a small followup to my PR facebook/react-native-website#166. This makes it more likely people will install the correct version of React. I was just reading the guide again now and realized it's easy copy&paste commands without reading the text around them, and install a wrong version of React.
1 parent a2a9438 commit cd4e56a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/integration-with-existing-apps.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,17 +156,17 @@ Install the `react` and `react-native` packages. Open a terminal or command prom
156156
$ yarn add react-native
157157
```
158158

159-
This will print something like:
159+
This will print a message similar to the following (scroll up in the yarn output to see it):
160160

161161
> warning "[email protected]" has unmet peer dependency "[email protected]".
162162
163-
This is OK, it means we also need to install react:
163+
This is OK, it means we also need to install React:
164164

165165
```
166-
$ yarn add react@16.2.0 # Make sure you use the same react version as printed by yarn when installing react-native!
166+
$ yarn add react@version_printed_above
167167
```
168168

169-
This will create a new `/node_modules` folder. This folder stores all the JavaScript dependencies required to build your project.
169+
Yarn has created a new `/node_modules` folder. This folder stores all the JavaScript dependencies required to build your project.
170170

171171
Add `node_modules/` to your `.gitignore` file.
172172

0 commit comments

Comments
 (0)