Introduction — Tools — Usage
A react native starter kit aws amplify created with latest react native.
This project is created to kick-start your new react native app development with aws amplify. It is using common tools to make your devlopment more easy, all ready to go.
This project is using following common tools:
- Redux Architecture
- Routing and navigation
- Data Caching / Offline
-
Logger
-
AWS Amplify
- Add
eslint
,prettier
andeditor config
plugins into your IDE - Your machine must have React Native dependencies installed
1. create aws-exports.js in src/awsConfig directory
2. export awsConfig
export const config = {
aws_cognito_region: 'xxx',
aws_user_pools_id: 'xxx',
aws_user_pools_web_client_id: 'xxx',
aws_mandatory_sign_in: 'disable',
aws_appsync_graphqlEndpoint: 'xxx',
aws_appsync_region: 'xxx',
aws_appsync_authenticationType: 'AMAZON_COGNITO_USER_POOLS',
aws_appsync_apiKey: 'xxx',
};
yarn && npx pod-install ios
npx react-native run-android
npx react-native run-ios
Or
Open project.xcworkspace file from ios folder and build from xcode