README
react-native-aura-sound-pool
Getting started
$ npm install react-native-aura-sound-pool --save
Mostly automatic installation
$ react-native link react-native-aura-sound-pool
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.frewen.rn.soundpool.RNAuraSoundPoolPackage;
to the imports at the top of the file - Add
new RNAuraSoundPoolPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-aura-sound-pool' project(':react-native-aura-sound-pool').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-aura-sound-pool/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-aura-sound-pool')
Usage
import RNAuraSoundPool from 'react-native-aura-sound-pool';
// TODO: What to do with the module?
RNAuraSoundPool;