Code for React Native app, written for 2021 NASA Space Apps Challenge: You Are My Sunshine.
https://nodejs.org/zh-tw/download/
- make sure to install v12 or later version.
sudo npm install -g expo-cli
cd /(the path you want to store our project)
git clone https://github.com/NASA2021-EcEcursion/POWER_Dips-ReactNative.git
cd POWER_Dips-ReactNative
npm install
- Add Google Places API Key here
- If you don't use API Key, only latitude and longtitude can be used. You will not able to use the geocoding method.
- Our official releases do come with full functionality
- We use Expo Go on mobile device to test our app
- for ios:
- for Android:
https://play.google.com/store/apps/details?id=host.exp.exponent
open cmd and cd into the project file, then type:
npm start
we'll get a webpage look like this
- open your mobile camera and scan the QR Code at the bottom left of your web page
your mobile device will automatically open Expo Go and run the app. - For the CONNECTION setting, choose "Tunnel" if your mobile device is not on the same LAN with your server, or the LAN setting doesn't work.
- android - When in repo open command line, then type:
expo build:android
- IOS - When in repo open command line, then type:
expo build:ios