1.0.5 • Published 5 years ago
@mmrehman/react-native-slow-video-android-library v1.0.5
react-native-slow-video-android-library
Getting started
$ npm install react-native-slow-video-android-library --save
Mostly automatic installation
$ react-native link react-native-slow-video-android-library
Manual installation
Android
- Open up android/app/src/main/java/[...]/MainActivity.java
- Add import com.slowmotionbridging.CustomToastPackage;to the imports at the top of the file
- Add new CustomToastPackage();to the list returned by thegetPackages()method
- Append the following lines to android/settings.gradle:include ':react-native-slow-video-android-library' project(':react-native-slow-video-android-library').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-slow-video-android-library/android')
- Insert the following lines inside the dependencies block in android/app/build.gradle:compile project(':react-native-slow-video-android-library')
Usage
import RNSlowVideoAndroidLibrary from 'react-native-slow-video-android-library';
// TODO: What to do with the module?
RNSlowVideoAndroidLibrary;