Giter Club home page Giter Club logo

react-native-auth-starter's Introduction

React Native Auth Starter

Easy authentication for your next React Native app.

๐ŸŽง Powered by Amplify

Features

โœ… Preconfigured, production tested authentication flow

โœ… 2 Factor Authentication Enabled

โœ… React Navigation

โœ… Redux

โœ… Amplify React Native

โœ… Opinionated yet configurable

โœ… Themeable

โœ… Cross-Platform

Roadmap

โฌœ๏ธ Social Logins / Federated Identities

โฌœ๏ธ Optional intro / onboarding flow

Getting Started

  1. Clone project
git clone https://github.com/dabit3/react-native-auth-starter.git
  1. Change into react-native-auth-starter directory
cd react-native-auth-starter
  1. Install dependencies
yarn || npm install
  1. Configure AWS Amplify config in index.js by adding your own aws-export.js file in the src directory. If you do not already have this file, continue to step 5

  1. Install AWSMobile CLI if not already installed and configured (for steps on how to configure AWSMobile CLI, see this two minute video)
npm i -g awsmobile-cli
awsmobile configure
  1. Create a new AWS Mobile Hub Project using the AWSMobile CLI
awsmobile init
  1. Enable User Sign In
awsmobile user-signin enable
awsmobile push

react-native-auth-starter's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-native-auth-starter's Issues

Update to 2019 using latest packages

Hi could you please update this project to work on latest versions e.g. Java 12, SDK 28. Unfortunately i wasnt able to run this in 2019.

aws-amplify ^0.2.11 โ†’ ^1.1.40
aws-amplify-react-native ^0.2.7 โ†’ ^2.1.19
moment ^2.20.1 โ†’ ^2.24.0
react 16.2.0 โ†’ 16.9.0
react-native 0.52.1 โ†’ 0.60.5
react-navigation ^1.0.0-beta.27 โ†’ ^4.0.5
react-redux ^5.0.6 โ†’ ^7.1.1
redux ^3.7.2 โ†’ ^4.0.4
redux-persist ^5.5.0 โ†’ ^6.0.0
redux-thunk ^2.2.0 โ†’ ^2.3.0
babel-jest 22.1.0 โ†’ 24.9.0
babel-preset-react-native 4.0.0 โ†’ 4.0.1
jest 22.1.4 โ†’ 24.9.0
react-test-renderer 16.2.0 โ†’ 16.9.0

The SDK Build Tools revision (23.0.1) is too low for project ':amazon-cognito-identity-js'. Minimum required is 25.0.0

On a clean git clone, following the instructions in README.md and then using react-native run-android to try and run on android, got this error:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':amazon-cognito-identity-js'.
> The SDK Build Tools revision (23.0.1) is too low for project ':amazon-cognito-identity-js'. Minimum required is 25.0.0

versions:
react-native-cli: 2.0.1
react-native: 0.52.1
npm: 5.6.0
node: v8.11.1

Got past it using the android/build.gradle tweak from oblador/react-native-vector-icons#428 (comment)

But now when running the app I get this after clicking Sign Up:

Warning: Failed prop type: The prop 'onRequestClose' is marked as required in 'Modal
', but its value is 'undefined'.
in Modal (at SignUp.js:116)
in SignUp (created by Connect(SignUp))
in Connect(SignUp) (at SceneView.js:17)
...

I suspect I have a more recent SDK installed than what you had when you wrote the project, but there is an incompatibility with it? Putting a handler for onRequestClose into the Modal tag in SignUp.js prevents the error/warning (and the alert doesn't appear...)

<Modal onRequestClose={() => {
              alert('Modal has been closed.');
            }}>

but I get stuck now on the "Confirm" page where the Authentication Code input has too narrow (just shows "Au" for placeholder text), and no SMS was sent (I used all the default settings). If I need to do something else to enable SMS sending, perhaps include that in README.md, or just confirm by email for starters?

Thanks!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.