npm install react-native-cli -g
react-native init yourproject
npm install
react-native run-ios
Question 1: the card can not open the emulator command line; Solution: Open vpn, need to rely on some FQ
react-native run-android
Question 2:
Failed to install the following Android SDK packages as some licences have not been accepted
解决方法:Change directory to /Users/windseek/Library/andriod/sdk/tools/bin And over here run ./sdkmanager --licenses Accept the licenses and you'll be good to go
Problem 3: Make sure you have an Android emulator running or a device connected and have
run an Android emulator
New local.properties in the android directory
sdk.dir = / Users / windseek / Library / Android / sdk
disposed directory sdk
disposed directory sdk