Getting started
iOS
Install all dependencies
- Install CocoaPods
sudo gem install cocoapods
- And install ios dependencies
cd ios && pod install
Run instructions for iOS:
npm run ios
--- or ---
- Open
ios\phutball.xcodeproj
in Xcode or runxed -b ios
- Hit the Run button
Android
Run instructions for Android:
- Have an Android emulator running (quickest way to get started), or a device connected.
npm run android
Windows
Install all dependencies
Start-Process -Verb RunAs powershell -ArgumentList @("-command", "iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/microsoft/react-native-windows/master/vnext/Scripts/rnw-dependencies.ps1'))")
Run instructions for Windows and macOS:
npm run windows
--- or ---
- Open
windows\phutball.sln
in Visual Studio and pressF5
Troubleshooting
- Clear watchman watches: watchman watch-del-all
- Delete node_modules: rm -rf node_modules and run yarn install
- Reset Metro's cache: yarn start --reset-cache
- Remove the cache: rm -rf /tmp/metro-*