Saturday, August 30, 2025

React Native "init" command is deprecated

To See All React Native Articles: Index of Lessons in Technology
(base) jain@jain-ThinkPad-T440s:~/Desktop/ws/react_native_apps$ npx react-native init ReadingAppForBrightOrange
Need to install the following packages:
react-native@0.81.1
Ok to proceed? (y) y


🚨️ 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...

FIX

(base) jain@jain-ThinkPad-T440s:~/Desktop/ws/react_native_apps$ npx @react-native-community/cli init Reading_App_For_Bright_Orange
                                                          
               ######                ######               
             ###     ####        ####     ###             
            ##          ###    ###          ##            
            ##             ####             ##            
            ##             ####             ##            
            ##           ##    ##           ##            
            ##         ###      ###         ##            
             ##  ########################  ##             
          ######    ###            ###    ######          
      ###     ##    ##              ##    ##     ###      
   ###         ## ###      ####      ### ##         ###   
  ##           ####      ########      ####           ##  
 ##             ###     ##########     ###             ## 
  ##           ####      ########      ####           ##  
   ###         ## ###      ####      ### ##         ###   
      ###     ##    ##              ##    ##     ###      
          ######    ###            ###    ######          
             ##  ########################  ##             
            ##         ###      ###         ##            
            ##           ##    ##           ##            
            ##             ####             ##            
            ##             ####             ##            
            ##          ###    ###          ##            
             ###     ####        ####     ###             
               ######                ######               
                                                          

              Welcome to React Native 0.81.1!                
                 Learn once, write anywhere               

✔ Downloading template
✔ Copying template
✔ Processing template
✔ Installing dependencies
✔ Initializing Git repository

  
  Run instructions for Android:
    • Have an Android emulator running (quickest way to get started), or a device connected.
    • cd "/home/jain/Desktop/ws/react_native_apps/Reading_App_For_Bright_Orange" && npx react-native run-android
  
  

No comments:

Post a Comment