1.0.2 • Published 5 years ago

react-native-aura-sound-pool v1.0.2

Weekly downloads
8
License
MIT
Repository
-
Last release
5 years ago

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

  1. 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 the getPackages() method
  1. 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')
  2. 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;