I’m new at react-native and I can easily create a react-native app using Expo, but there is no way using react-native init with Mac OS.
I have checked all the recommendations on internet, but the ios folder is never created.
Versions I have:
-Node v18.8.0
-Watchman v2022.08.22.00
-cocoapods v1.11.3
-xcode Version 13.4.1
I have tried all the recommendations I found: react-native upgrade, react-native-eject, reinstalling react-native-cli…,but no way.
I think that the template is not correct.
Can someone tell me how to solve this issue?
2
Answers
Expo updated today, just download the latest version of react-native. After creating the project, type in your terminal
yarn add react-native@latest
/npm install react-native@latest
Perhaps you mistyped, but rather than reinstalling
react-native-cli
try uninstalling:As suggested in the docs, globally installed
react-native-cli
can cause issues, and missing the iOS folder/incomplete init is indeed one of them.Once global
react-native-cli
is installed re-runreact-native init