These are project templates that are used by the Brightlayer UI CLI when starting a new Brightlayer UI project. They are used behind the scenes by the Brightlayer UI CLI.
The Blank template provides a bare-bones application with Brightlayer UI components and themes automatically configured and ready to use.
The Routing template provides all of the essential Brightlayer UI configuration as well as additional configuration for using React Navigation. It also adds a navigation Drawer to switch between several sample screens.
The Authentication template includes everything from the Routing template and also installs and configures the Brightlayer UI react-native-auth-workflow package to automatically wrap the main application with functions and screens for Login, Registration, Change Password, etc.
placeholder landing page | navigation drawer & routing | login & registration screens | |
---|---|---|---|
Blank | ✅ | ||
Routing | ✅ | ✅ | |
Authentication | ✅ | ✅ | ✅ |
To create a new project using the Template simply run (recommended):
npx react-native init MyApp --template @brightlayer-ui/react-native-template-blank-typescript
npx react-native init MyApp --template @brightlayer-ui/react-native-template-routing-typescript
npx react-native init MyApp --template @brightlayer-ui/react-native-template-authentication-typescript