I have created a react native app for the first time. To publish the app, I have to create an app bundle(.aab).
How do I create an app bundle?
This is what you do to generate an AAB bundle file.
cd android
./gradlew bundleRelease
Look at this for pre-requisites. To extract an APK out of the bundle and test it on a device before upload then use the bundletool from Google.