$ npm install rn-native-ui-android-test --save
$ react-native link rn-native-ui-android-test
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.test.rnvideoplayer.RNRnvideoplayerPackage;
to the imports at the top of the file - Add
new RNRnvideoplayerPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':rn-native-ui-android-test' project(':rn-native-ui-android-test').projectDir = new File(rootProject.projectDir, '../node_modules/rn-native-ui-android-test/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':rn-native-ui-android-test')
import RNRnvideoplayer from "rn-native-ui-android-test";
// TODO: What to do with the module?
RNRnvideoplayer;