Skip to content

Latest commit

 

History

History
98 lines (63 loc) · 2.43 KB

File metadata and controls

98 lines (63 loc) · 2.43 KB

Expo

Expo is a mobile cross platform built on top of react native.

The guide below walks you through getting expo installed and running your app on your device.

Setup

To develop locally, you will Node and Expo installed

  1. Install Node

A) Mac/Linux We will install node using NVM

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
# comment
nvm install node 
nvm use node
source ~/.bash_profile

B) Windows Download through official installer Link

  1. Install Expo Expo is a wrapper build on top of React Native; a cross platform mobile framework. It can be installed with the below command.
npm install -g expo-cli
  1. Install packages for project NPM Packages that you need for your application are specified in package.json. To install the packages, run
npm install
  1. Expo Setup Download Android or IOS App from the respective mobile stores

Login to the expo app. Expo Login

Completing this step will allow code that we developed locally to be updated on the device

  1. Launch App Login to expo on your computer
expo login

Expo Login

Launch expo

npm run start

Note: If your phone is on a different network than where you are running, then run

expo start --tunnel

You should see this project your listed on the app App List

  1. Customizing message Modify config.js
    Config

Modify "title", to change the copy listed on the "Home" screen
Modify "host" to point to a deployed version of your model Modify "description" to change the copy on the "About" screen

Custom Endpoint

If you want to point your app your api, it needs these endpoints.

/api/classes Return a list of classes
/api/classify Takes image data as binary and returns classes

Here is a sample implementation.

Deploying to the store (optional)

If you are interested in deploying to Google, and Apple refer to this guide