I\'ve created the project using the following command.
react-native init Awesome_Project
I\'ve started the packager using the following com
This is happening if you have enabled build varaints in your app build.gradle file.
When react-native runs, it seems to prefix test or something to your application id which changes the package names in some files but leaves others the same. Your application cannot find .MainActivity because it actually does not exist in the new package namespace that was generated.
Here are some things to try to fix this issue:
/node_modules/react-native/local-cli/runAndroid
This should solve your issue.