Enables you to have a React Native app with these capabilities up and running in minutes:
- User account/profile creation
- User login
- Email verification
- Navigation
- In-app Notifications
- Parse-Lite for most tasks
- Official Parse JS SDK for certain things like Live Query and File uploads
- React Navigation
- Redux
- Set up a Parse Server
- Clone this repo
- Run
npm install
- Update
src/utils/config.json
with your Parse Server host and App ID - Run
react-native run-ios
orreact-native run-android
To add new screens:
- Create a new file in
src/screens
- Open
src/components/AppNavigation.js
- Import your new screen
- Add your new screen to either the
RootNavigator
or theModalNavigator
The only data saved to a user's profile object is their username and avatar image. To add more data to a user's profile (e.g. Full Name, DOB, Bio, etc), follow these steps:
- Open
src/reducers/loginUI.js
- Add your new data fields to the initial state
- Open
src/screens/Login.js
- Add whatever user input markup you need to the
Forms()
function or elsewhere - Scroll down to the
signup()
function - Add your new data to the
signupData
object
- Setup your parse server for email verification
- Open
src/actions/user.js
- Scroll down to
resendVerification()
- Copy the commented function into your Parse Server Cloud Code file (the default is
cloud/main.js
) - Remove comments and
alert
fromsrc/actions/user.js
When adding new reducers, be sure to import and add it to the combineReducers
function in src/reducers/index.js