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
## Description
### Why
This PR fixes a insonsitency in the documentation and updates the init
command to the latest date because the current command is resulting in
the following error
```
npx react-native@latest init ReactNativeGithub --version 0.76.0
🚨️ The `init` command is deprecated.
- Switch to npx @react-native-community/cli init for the identical behavior.
- Refer to the documentation for information about alternative tools: https://reactnative.dev/docs/getting-started
Exiting...
```
Furthermore, I've removed the path level from the version value so the
latest patch will be used (0.76.7)
What is the motivation for this change? Add a few sentences describing
the context and overall goals of the pull request's commits.
###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/react-native-windows-samples/pull/1013)
---------
Co-authored-by: Saad Najmi <sanajmi@microsoft.com>
Copy file name to clipboardExpand all lines: docs/rnm-getting-started.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,10 @@ For information around how to set up:
13
13
14
14
## Install React Native for macOS
15
15
16
-
Remember to call `react-native init` from the place you want your project directory to live. Be sure to use the same minor version between React Native and React Native macOS. We'll use `^0.71.0`
16
+
Remember to call `@react-native-community/cli init` from the place you want your project directory to live. Be sure to use the same minor version between React Native and React Native macOS. We'll use `^0.76.0`
0 commit comments