[WIP] React Native mobile boilerplate
Will run NAP at localhost:3000
git pull https://github.com/rabbotio/nap.git
cd nap
npm run setup
npm run up
- Go to your Facebook app page setting e.g.
https://developers.facebook.com/apps/
113587919136550/settings/
- Add web platform with
http://localhost:3000/auth/facebook
- Follow through Facebook Login for iOS - Quickstart
- Copy app
FACEBOOK_APP_ID
andFACEBOOK_APP_SECRET
and fill them in.env
file.
FACEBOOK_APP_ID=...
FACEBOOK_APP_SECRET=...
FACEBOOK_SCOPE=email,user_location
Will run react-native
on simulator.
git pull https://github.com/rabbotio/nap-react-native.git
cd nap
npm run setup
npm run ios
Will create new project with NAP authen, Please do make sure you have React Native installed
YOUR_APP_NAME=foo YOUR_FACEBOOK_APP_ID=113587919136550 . builder.sh
react-native upgrade
# Relink after upgrade
react-native link react-native-fbsdk
react-native link react-native-device-info
Edit index.ios.js
to match your need.
import NAPApp from './components/NAPApp'
const nap = new NAPApp({
name: 'foo', // Change name to match your app
uri: 'http://localhost:3000/graphql' // Change GraphQL endpoint here
})
- Automate some remain process
- Android support
- Test