Reputation: 2049
I recently update my React Native + React dependencies. I then removed by iOS + android folders to create fresh ones, but the following command that used to work in the past is now giving an error
Dependencies:
What worked in the past:
react-native upgrade --legacy true
Error:
error: unknown option `--legacy'
What I've tried
Upvotes: 1
Views: 1782
Reputation: 919
You can create new iOS/Android folder using react-native-eject,
Follow this steps,
npm i @react-native-community/cli
)npm i react-native-eject
)npx react-native eject
Upvotes: 1