In this first we create a prebuild for the react native application : [android]
In the prebuild we first need to create a basic app using react native
npx create-expo-app app-name --template tabs
To create a prebuild for react native we use follwing command.
npx expo prebuild
npx expo run:android --device
Sometimes we get some issue when creating a prebuild the follwings are issue and their solutions
React Native android build failed. SDK location not found
To solve this issue create a local.properties in android folder and add this line
sdk.dir = C:\\Users\\USERNAME\\AppData\\Local\\Android\\sdk
note change the username according to your username which is in Users folder