This is an official Brightlayer UI template used internally by the Brightlayer UI CLI.
This template installs and configures the Brightlayer UI react-native-auth-workflow package to automatically wrap your main application with functions and screens for Login, Registration, Change Password, etc. This uses the same configurations as the sample project for that package — you will need to replace the API integrations with implementations specific to your API. This template also includes the installation and initial setup of routing using React Navigation. It includes several placeholder routes/screens and a Drawer navigator from the Brightlayer UI React Native Component Library.
This template can be used with the Brightlayer UI CLI:
npx -p @brightlayer-ui/cli blui new react-native --name=myapp --cli=rnc --language=js --template=authentication
Projects created using this template will start out with the following file structure:
|── /ios // ios project folder |── /android // android project folder |── /actions | |── AuthUIActions.js // handles the implementation of the authentication related actions (such as login and forgot password) | └── RegistrationUIActions.js // handles the implementation of the registration related actions (such as loading the EULA and registration by invitation) |── /assets // fonts and images used by the application |── App.tsx // app entry point |── /constants | |── index.js // application constants | └── sampleEula.js // sample Eula |── /pages // sample application pages |── /router | |── index.js // sets up routing | |── DeepLinking.js // sets up deep linking | └── navigation-drawer.js // sets up Drawer └── /store └── local-storage.js // mock implementation for storing/retrieving user authentication session data