Where2BeDemo.mp4
This contains the codebase for Where2Be's React Native mobile application.
- Remove
node_modules
- Run
cd ios
- Run
pod deintegrate
- Create a
.env
file in the format of.env-example
with those fields filled in - Run
npm i
if you do not havenode_modules
folder - Run
pod install
inios
directory (if you're going to run iOS) - Run
npx expo run:ios --device
ornpx expo run:android --device
You'll need cocoapods to run the application on iOS. Follow a tutorial online on how to get them. It's recommended to use a macbook to develop Where2Be.
- Go to
constants/settings.ts
and turnfirebaseAnalytics
tofalse
andsentryEnabled
tofalse
- Go to
backendconfig.json
and turn"env"
to"dev"
with the URL as your localhost (if you're running the server locally) - If you want to test shareable links, you'll need access to
branch.io
and use thetest
url. SetuniversalLinks
inconstants/settings.ts
totrue
and follow instructions on how to run usingwhere2be.test.app.link
online. Account credentials are on Lastpass. Contact either Kyle or Chirag to get access.
- Go to
constants/settings.ts
and turnfirebaseAnalytics
totrue
- Go to
constants/settings.ts
and turnuniversalLinks
totrue
- Go to
constants/settings.ts
and turnsentryEnabled
totrue
- Go to
backendconfig.json
and turn"env"
to"prod"
(with the appropriate API url) - Go to
android/app/build.gradle
and increase theversionName
to what the new android version will be. - Go to
ios/Where2Be/Info.plist
and increase the version for the key<key>CFBundleShortVersionString</key>
Do NOT run npx expo prebuild
. Where2Be uses native modules, and running this command causes issues.