I am not very familiar with java/Android development but I find something that might be related to the issue. So I post here to ask for opinion/help.
I am using create-react-native-app to eject with ExpoKit. After eject, the MainApplication.java includes a class
MainApplication which extends
MultiDexApplication. If I eject with normal react-native project, the same class extends
Application as well as implements
ReactApplication. This interface needs to implement
getReactNativeHost method which returns a
Some libraries expect that the
MainApplication is a React application which has a
getReactNativeHost. For example:
The app crashes when run into these lines. So my questions are:
- Why implementation of MainApplication.java is different between expo and plain react-native?
- How can I use those libraries with ExpoKit?