Skip to content

Commit 7074724

Browse files
committed
Update README.md
1 parent 47be961 commit 7074724

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

examples/expo/README.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
This is a new [**React Native**](https://reactnative.dev) project, bootstrapped using [`@react-native-community/cli`](https://github.com/react-native-community/cli).
2-
31
# Getting Started
42

53
> **Note**: Make sure you have completed the [Set Up Your Environment](https://reactnative.dev/docs/set-up-your-environment) guide before proceeding.
@@ -22,11 +20,7 @@ You will need to run **Metro**, the JavaScript build tool for React Native.
2220
To start the Metro dev server, go the `example` directory, and run the following command from the the `example` directory:
2321

2422
```sh
25-
# Using npm
2623
npm start
27-
28-
# OR using Yarn
29-
yarn start
3024
```
3125

3226
## Step 3: Build and run your app
@@ -36,11 +30,7 @@ With Metro running, open a new terminal window/pane from the root of the `exampl
3630
### Android
3731

3832
```sh
39-
# Using npm
4033
npm run android
41-
42-
# OR using Yarn
43-
yarn android
4434
```
4535

4636
### iOS
@@ -62,11 +52,7 @@ bundle exec pod install
6252
For more information, please visit [CocoaPods Getting Started guide](https://guides.cocoapods.org/using/getting-started.html).
6353

6454
```sh
65-
# Using npm
6655
npm run ios
67-
68-
# OR using Yarn
69-
yarn ios
7056
```
7157
If everything is set up correctly, you should see your new app running in the Android Emulator, iOS Simulator, or your connected device.
7258

examples/macos/README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
This is a [**React Native**](https://reactnative.dev) project, bootstrapped using [`@react-native-community/cli`](https://github.com/react-native-community/cli).
22

3-
# Patch
3+
# Patches
44

5+
## macOS related patches
56
This monorepo setup breaks the react-native scripts. All those scripts point to the wrong node_modules path. **Please patch it after pod installation**
67

78
#### `/ping-react-native/examples/macos/macos/Pods/Pods.xcodeproj/project.pbxproj`
@@ -15,6 +16,18 @@ If you have any solutions better than this patches. Please, feel free to fix thi
1516

1617
I'm sorry for my lack of knowledge about iOS/macOS app build system.
1718

19+
## react-native-macos mismatch React version
20+
This monorepo use single React package that is also used by Expo example project. For a while, just override the version checker
21+
22+
Find these files:
23+
- /node_modules/react-native-macos/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js
24+
- /node_modules/react-native-macos/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js
25+
- /node_modules/react-native-macos/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js
26+
27+
In your IDE or any text editors, find this `if ("19.1.4" !== isomorphicReactPackageVersion)` snippet. Just remove or mark as comment the whole if statement block.
28+
29+
> I'm sorry, I don't make a `pnpm` patch yet.
30+
1831
# Getting Started
1932

2033
> **Note**: Make sure you have completed the [Set Up Your Environment](https://reactnative.dev/docs/set-up-your-environment) guide before proceeding.
@@ -46,6 +59,7 @@ Then, and every time you update your native dependencies, run:
4659
```sh
4760
bundle exec pod install
4861
```
62+
> :warning: Please see [macOS related patches](#macos-related-patches) after every pod installation
4963
5064
For more information, please visit [CocoaPods Getting Started guide](https://guides.cocoapods.org/using/getting-started.html).
5165

0 commit comments

Comments
 (0)