I added expo-modules into existing project to use a module from expo.I followed the docs and it worked perfectly on iOS but on android it crated issues and I fixed the issue by using the code in MainActivity.java
.code is given below to fixed the issues.
protected ReactActivityDelegate createReactActivityDelegate() {
return new ReactActivityDelegate(this, getMainComponentName()) {
@Override
protected ReactRootView createRootView() {
return new RNGestureHandlerEnabledRootView(MainActivity.this);
}
};
}
protected String getMainComponentName() {
return "App";
}
When I installed the expo modules the getMainComponentName()
implementation was missing and I added the function with app name return.Now the issue gone but when I run the app it successfully build and logs shows that first screen started but on mobile its the white blank screen.I tried to read the console there is no such error.Kindly anyone guide me through the process.Thanks