The React Native frontend, which will be the face of the drinking game application. Written in React Native TypeScript, and compiled using Expo.
A live preview of this application can be accessed here
- Node >= 12.14.1
- NPM >= 6.14.4
- Expo >= 3.20.3
- If you haven't already, install expo using
npm install -g expo-cli
- Clone this repository, and
cd
into it - Run
npm install
to install the node dependencies - Run
npm run start
to start the development server - A browser window should pop up with the expo dev tools
- A specific version of the React Native Debugger is needed to be compatible with the version of React Native that Expo uses.
- To download this version, run
npm run download-debug:windows
, and install it on your computer. - If that command doesn't work, you can install it here.
- Once installed, run
npm run debug
to start the debugger. (The debugger only works on an iOS simulator / Android emulator, and you must have Remote Debugging Enabled). - The React Dev Tools Chrome Extension can be used to debug while running on the web.
This application can be compiled and launched on the following platforms
- Web
- Android Emulator
- Android Physical Device
- iPhone Simulator
- iPhone Physical Device
Instructions for each device are given below
- After starting the development server, select
Run in web browser
or without starting the development server, runnpm run web
- Make sure you have Xcode installed and up to date
- If you haven't already, install the Xcode Command Line tools by running
xcode-select --install
(This may take a while) - After starting the development server, select
Run on iOS simulator
or without starting the development server, runnpm run ios
- Make sure you have Android Studio, and an android emulator installed
- Make sure you have followed the React Native CLI Quickstart (Not Expo CLI Quickstart) under Android Target OS
- After starting the development server, select
Run on Android device/emulator
or without starting the development server, runnpm run android
You can run this code on your own iOS device while running the development server, and preview live updates as you change the code.
- iOS >= 10.0
- At least 80MBs of available storage
- Download the Expo client from the iOS App Store
- After starting the development server, scan the QR code with your device, and Expo will generate a live preview of your app
You can run this code on your own Android device while running the development server, and preview live updates as you change the code.
- Android >= 5 - Lollipop
- At least 80MBs of available storage
- Download the Expo client from the Play Store
- After starting the development server, scan the QR code with your device, and Expo will generate a live preview of your app