RNG is intended to be a source of inspiration for building your own react-native application. It has enough that you can move past the "what should I use" phase and right into building!
Defend your app, take your shield!π‘
Built for the modern RN developer.
β
ES6
β
Eslint
β
Axios
β
MobX
β
MobX-Persist
β
React-Native V0.51.0
β
React-Native-FBsdk
β
React-Native-Router-Flux V4
β
React-Native-Easy-Grid
β
React-Native-Vector-Icons
"Update once, update everywhere."
Start a consistent design system from the start.
Create or copy a folder that includes:
- Index.js
- Styles.js
- Component.js
In Styles.js
place import { Colors, Fonts } from '@theme/'
In Component.js
place import Styles from './Styles'
The router is protected with a combination of the fb-sdk
, mobx
, mobx-persist
, and react-native-router-flux
.
In order for this to work, you need to also download and install the RNG-Server.
Change these few files and functions:
- Open
userStore.js
- Replace
signIn
,signUp
,createUser
, andfetchUser
- Update
api.js
with your server address
Make sure you're set up for React Native
Make sure you have Node 6.5+
You can check your version of node by running
node -v
yarn
If you don't have it, install Yarn for your system.
rnpm link
Head over to the repo and follow the install instructions.
or provide your own server π
Make sure you have followed all the steps in the React-Native-Fbsdk
A couple of tips!
- Make sure you have the
FacebookSDK
folder in~/Documents
- Check xCode
Build Settings
-->Framework Search Paths
for a path to step 1. - If no path, drag your
FacebookSDK
folder from~/Documents
in - Check your
info.plist
for proper credentials - Open an issue if all else fails