facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
117.41k stars 24.13k forks source link

[0.74] npx react-native init should warn users but it's currently not #44386

Open cortinico opened 2 months ago

cortinico commented 2 months ago

Description

As per RFC0759:

Users on 0.74 should start seeing a warning when they run npx react-native init. This was implemented on:

It seems like this warning is actually not working properly.

Steps to reproduce

  1. Run npx react-native@latest init RN074 --skip-install
  2. 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
cortinico commented 2 months ago

cc @byCedric

github-actions[bot] commented 2 months ago
:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.
cortinico commented 3 weeks ago

Closing as this has been resolved