Simple Expo React Native App
Login Screen with React Native app
Expo is a bundle of tools created around React Native to help you quickly start an app.
To install Expo CLI, you must install it as a global npm package. Open the terminal on your development machine and run the following command:
npm install — global expo-cli
To create the Expo app and start the app run the following commands
npx create-expo-app RN_Expoexpo start
The app can run on your mobile. Install the Expo Go app on your mobile and scan the given QR code.
Create directories at the root directory — Navigator, Screens.
React Navigation is used for navigation between screens and we need to install some packages so, run the following commands on the terminal :
npm install @react-navigation/nativeexpo install react-native-screens react-native-safe-area-contextnpm install @react-navigation/native-stack
Regex validations are one of the best ways to validate the user inputs.
Use the trim() method to avoid the unwanted empty spaces when users by mistake spaces may create.
Just explore the React Navigation documentation. https://reactnavigation.org/docs/hello-react-navigation
Thanks For Reading, Follow Me For More