Saturday, October 24, 2020

Why android and iOS folders are not seen when developing with react-native expo?

One of the points of Expo on top of React Native is that you don't go down to android or ios code. Expo deals with those folders for you, you don't need to interact with them. Is there a reason you need those folders? if so, you will have to eject.

npm run eject 

this will eject. however it removes the app from the Expo framework, which adds a lot of nice benefits and abstraction from the Android/iOS code.

if you want to develop app with ReactNative you start follow this : Getting Started use React Native.

If you create project with ReactNative just write on your terminal like:

react-native init YourProjectName

cd YourProjectName

react-native run-ios //for iOS



npm run eject 


> eject

> expo eject


WARNING: expo-cli has not yet been tested against Node.js v15.0.1.

If you encounter any issues, please report them to https://github.com/expo/expo-cli/issues


expo-cli supports following Node.js versions:

* >=10.13.0 <11.0.0 (Maintenance LTS)

* >=12.13.0 <13.0.0 (Active LTS)

* >=14.0.0  <15.0.0 (Current Release)


Your git working tree is clean

To revert the changes after this command completes, you can run the following:

  git clean --force && git reset --hard


📝  Android package Learn more: https://expo.fyi/android-package


? What would you like your Android package name to be? 




references:

https://stackoverflow.com/questions/44270504/react-native-ios-and-android-folders-not-present#:~:text=android%20and%20ios%20folder%20are,create%20android%20and%20ios%20folder.&text=This%20worked%20for%20me%3A%20Go,both%20environments%20%2D%20User%20and%20Workspace.


No comments:

Post a Comment