Overview
React Native Auth Starter is a tool that provides easy authentication for React Native applications. It is powered by Amplify and offers a preconfigured, production-tested authentication flow. The tool also supports 2 Factor Authentication and includes features like React Navigation, Redux, Amplify React Native, and cross-platform compatibility.
Features
- Preconfigured, production tested authentication flow: The tool comes with a preconfigured authentication flow that has been tested in production environments.
- 2 Factor Authentication Enabled: It supports 2 Factor Authentication, providing an extra layer of security.
- React Navigation: The tool integrates React Navigation, making it easier to navigate between screens.
- Redux: Redux is included in the tool, allowing for state management in the application.
- Amplify React Native: It is powered by Amplify React Native, enabling seamless integration with the Amplify framework.
- Opinionated yet configurable: The tool offers opinionated defaults but can be configured to fit specific requirements.
- Themeable: It supports theming, allowing for customization of the application’s appearance.
- Cross-Platform: The tool is compatible with both iOS and Android platforms.
Installation
To install React Native Auth Starter, follow these steps:
- Clone the project to your local machine.
- Change into the “react-native-auth-starter” directory.
- Install the project dependencies.
- Configure the AWS Amplify config by adding your own “aws-export.js” file in the “src” directory. If you don’t have this file, proceed to the next step.
- Install and configure the AWSMobile CLI if you haven’t already done so. You can refer to a two-minute video for instructions on how to configure the AWSMobile CLI.
- Create a new AWS Mobile Hub Project using the AWSMobile CLI.
- Enable User Sign In in your AWS Mobile Hub Project.
Summary
React Native Auth Starter provides easy authentication for React Native apps by leveraging the power of Amplify. It comes with preconfigured authentication flow, 2 Factor Authentication, and support for features like React Navigation and Redux. The tool is cross-platform compatible and can be customized to suit specific requirements. The installation process involves cloning the project, installing dependencies, and configuring AWS Amplify and AWS Mobile Hub.