Skip to main content

Convert React Native To Expo

Convert React Native To Expo


Step 1: Add Into App.json

 "expo": {
    "sdkVersion": "44.0.0",
    "name": "AwesomeProject"
  }

Step 2: Add this into your package.json 
 "dependencies": {
    "expo": "^33.0.7",
    "react": "17.0.2",
    "react-native": "0.67.2"
  },

Step 3: Make your Index.js file look like this

AppRegistry.registerComponent('main', () => App);


Step 4: Install expo in your project folder

In terminal paste
npm install --save expo / npm install (If necessary)

Comments

Popular posts from this blog

React Native Full Notes

React Native Full Notes Device Orientation Like Youtube - First Go To App.json and set orientation:: "default"; Then go to project folder and run npm i @react-native-community/hooks import  {  }  from   'expo-status-bar' ; import   React   from   'react' ; import  {  Dimensions ,  StyleSheet ,  SafeAreaView ,  Text ,  View ,  Button ,  Platform ,  StatusBar  }  from   'react-native' ; import  {  useDimensions ,  useDeviceOrientation  }  from   "@react-native-community/hooks" ;   export   default   function   App () {    const  {  landscape  } =  useDeviceOrientation ();    return  (      < SafeAreaView   style = { styles . container } >        < View   style = { {          backg...

Linux Basics Cmd

  Install Package      sudo apt update     sudo apt install discord (Error_?)     sudo apt --fix-broken install  Remove Packages:     sudo apt remove firefox-esr (remove without deleting user data)     sudo apt purge firefox-esr (remove all user data) Update & upgrade :     sudo apt update && sudo apt upgrade     dpkg -l (List insatllled packages)