Would you rather (Picking between two options) game built with React Native (Expo managed)
- Clone the repo
git clone [email protected]:yanacompany/pick-your-poison.git
- Move into the cloned repo directory
cd pick-your-poison
- Install the packages
npm install
- Run with the Expo CLI
expo start
- Run the app on your local machine (Metro Server)
- Run on Expo Client App (Found in android/ios playstore)
Scan the QR code above with the Expo app or the camera app on ios
- On Mac for Iphone Simulator (Easier if you have Xcode installed)
- Press the following command
i
- On Mac for Android Emulator (Need to have Android Studio installed)
- Open up android simulator and create/run an avd ("emulated android device")
a
- On Windows No instruction yet but should be somewhat the same
- It is NOT possible to run iphone apps on windows
- To Refresh the app/Restart the app you must shake the device for the developer menu to pop up. Press "Reload app"
- Expo CLI found at Expo-cli
npm install -g expo-cli
-
Android Studio and/or Xcode to run on emulators
-
Expo Client app
Using expo component after you done and want publish with less size or just wan't to use a native library expo give you an option called ExpoKit this also can be used with already build with native code react projects
- run command expo eject to add ExpoKit (choose the "ExpoKit" option) (no need to do this if you have copied files manually or using native project)
- start expo packager with expo start.Leave this running and continue with the following steps.
- link library for android and ios, this command mostly do this react-native link, sometime this will not work and you should do it manually for this means visit expokit PS: Works!! (according to stackoverflow (32mb to 9mb))
Source: Stack Overflow : How to reduce the size of an expo/react-native app on Android