I've faced the same problem. Actually the problem was in the native code.
You can track the problem for android if you open an your_app/android project from Android Studio and run it, the same for iOS -> open ios project in XCode
So after I've fixed it the app run as intended