NOTE: Here's the "ejected" version: https://github.com/vbudilov/react-native-cognito-pure
Going forward I will update only the ejected version due to the complexities of keeping both of them insync and since non-Expo version are preferred for PRD usage (from my own experience).
After reinventing the wheel a bunch of times I decided to create a fairly good-looking react native with Cognito template.
Install the Expo client on your mobile device and then run the app:
yarn install
export BROWSER=none; yarn start
- React Native
- Expo
- AWS Amplify
- AWS Cognito
- Native Base
Note: You will have to create your own AWS Cognito User Pool in order to use this app (otherwise it'll default to my sample User Pool and all fo the users that register for your copy of the app will be registered in my User Pool). Once you create it, update the amplify-configs.js file under /constants.
Found in /constants/amplify-config.js
// REQUIRED - Amazon Cognito Region
region: 'us-east-1',
// OPTIONAL - Amazon Cognito User Pool ID
userPoolId: 'us-east-1_######',
// OPTIONAL - Amazon Cognito Web Client ID (26-char alphanumeric string)
userPoolWebClientId: '#########',