react-native
react-native copied to clipboard
[0.74] npx react-native init should warn users but it's currently not
Description
As per RFC0759:
- https://github.com/react-native-community/discussions-and-proposals/pull/759
Users on 0.74 should start seeing a warning when they run npx react-native init
.
This was implemented on:
- https://github.com/facebook/react-native/pull/43127
It seems like this warning is actually not working properly.
Steps to reproduce
- Run
npx react-native@latest init RN074 --skip-install
- Observe that the warning is not emitted
React Native Version
0.74.0
Affected Platforms
Build - MacOS, Build - Windows, Build - Linux
Output of npx react-native info
Not relevant.
Stacktrace or Logs
Here the output of the log:
$ npx react-native@latest init RN074 --skip-install
###### ######
### #### #### ###
## ### ### ##
## #### ##
## #### ##
## ## ## ##
## ### ### ##
## ######################## ##
###### ### ### ######
### ## ## ## ## ###
### ## ### #### ### ## ###
## #### ######## #### ##
## ### ########## ### ##
## #### ######## #### ##
### ## ### #### ### ## ###
### ## ## ## ## ###
###### ### ### ######
## ######################## ##
## ### ### ##
## ## ## ##
## #### ##
## #### ##
## ### ### ##
### #### #### ###
###### ######
Welcome to React Native!
Learn once, write anywhere
✔ Downloading template
✔ Copying template
Resolving 1.22.22 to a url...
error https://api.github.com/repos/yarnpkg/yarn/releases: API rate limit exceeded for 163.114.131.66. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
yarn config v1.22.22
success Set "nodeLinker" to "node-modules".
✨ Done in 0.02s.
✔ Processing template
✔ Dependencies installation skipped
info 💡 To enable automatic CocoaPods installation when building for iOS you can create react-native.config.js with automaticPodsInstallation field.
For more details, see https://github.com/react-native-community/cli/blob/main/docs/projects.md#projectiosautomaticpodsinstallation
✔ Initializing Git repository
Run instructions for Android:
• Have an Android emulator running (quickest way to get started), or a device connected.
• cd "/private/tmp/RN074" && npx react-native run-android
Run instructions for iOS:
• cd "/private/tmp/RN074/ios"
• Install Cocoapods
• bundle install # you need to run this only once in your project.
• bundle exec pod install
• cd ..
• npx react-native run-ios
- or -
• Open RN074/ios/RN074.xcodeproj in Xcode or run "xed -b ios"
• Hit the Run button
Run instructions for macOS:
• See https://aka.ms/ReactNativeGuideMacOS for the latest up-to-date instructions.
### Reproducer
N/A
### Screenshots and Videos
N/A
cc @byCedric
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
Closing as this has been resolved