


The second way is to create an Android Library, which is the way any NPM react-native packages (that go beyond JavaScript) work. To your android/app/src/main/* folder and use them from your MainActivity/ MainApplication. You can either put it directly into your existing app by adding Java classes This tutorial is targeted towards this group and shows how to create a React Native Android Libarry.įirst of all, there are two ways to use Java with the Android SDK in your React Native app.

I was recently in this situation and getting started doing this can be hard, especially if you have no prior native Android development experience. Sometimes you need to create a custom native module to do some task that you cannot solve with the standard React Native components.
