As we are using the expo managed workflow, the entirety of our application is just a JS bundle. This JS bundle then operates within the native ecosystem of the Expo app. The expo app contains all the native code we require and so there is no need to compile it ourselves.
During development you use the Expo client which is available from the app store.
You will also require the expo-cli to be installed in your terminal.
The expo client listens to the JS bundle server on your machine, which is run using the command expo start
.
As you make changes to the code it automatically hot reloads within the client.
npm install expo-cli --global
(yarn also possible)git clone https://github.com/cybersemics/em-webview-app.git
cd em-webview-app
yarn && yarn start
- If a simulator or connected with adb press
a
to run on Android ori
for iOS
- Download expo client
- Ensure the wifi is connected to the same network as the computer
- Scan the barcode at http://localhost:19002/ (expo server ui)
The package.json has helper scripts to run, publish, build and upload each variant of the application.
You will need to login to your Expo account before you build or upload.
# build ios ipa
yarn build-ios-prod
or
# build android apk/abb
yarn build-android-prod