There are two ways to create a React Native application you can use any of them, but we are going to use expo-CLI to create our app. Here You can find both of the methods by which you can create an RN App. There are some prerequisites in order to create an RN App. You should have installed the following tools.
- Node 12 LTS or greater
To install expo-CLI: Run the below command.
npm install -g expo-cli or yarn global add expo-cli
To create App: TestApp is the name of the app, you are free to use any other name
expo init TestApp
To Run the App: Go into the app folder the run the Command.
cd TestApp expo start
App.js: After running all those commands you should have a directory named TestApp, which will contain files of your React Native app. We are going to edit our App.js file to create a dialog.