react native invariant violation module rcteventemitter is not a registered callable module code example
Example: Invariant Violation: Module AppRegistry is not a registered callable module
try to restart the project after doing this:
cd android
sudo ./gradlew clean
cd ..