1.2.1 • Published 8 years ago
react-native-volume-controller v1.2.1
react-native-volume-controller
Volume Controller for iOS and Android.
First installation step (applied for both iOS & Android)
$ npm install react-native-volume-controller --save
2. Automatic installation
$ react-native link react-native-volume-controller
3. Manual installation
- In XCode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜react-native-volume-controller=>ios- add
ReactNativeVolumeController.xcodeprojto the Libraries folder in your XCode project
- add
- In XCode, in the project navigator, select your project. Add
libReactNativeVolumeController.ato your project'sBuild Phases➜Link Binary With Libraries - Run your project (
Cmd+R)
Android
Manual installation
- In Android Studio open
Module Settingsand add a Gradle Project. - Look for
react-native-volume-controllerandroid folder and link with a Gradle. - Open MyApplication.java from main app and put the ReactNativeVolumeControllerPackage
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new ReactNativeVolumeControllerPackage()
);
}Usage
Using component
import { SliderVolumeController } from 'react-native-volume-controller';
class PlayerUI extends Component {
render() {
return (
<SliderVolumeController />
);
}
}Style props
Use the props style like a Slider
TODO - Need help :P
- Android Listener to know when press volume button and after dispatch event to react
- Create interface to change volume with Android
- Enable Airplay button when is possible
1.2.1
8 years ago
1.2.0
8 years ago
1.1.6
8 years ago
1.1.5
8 years ago
1.1.4
8 years ago
1.1.3
8 years ago
1.1.2
9 years ago
1.1.1
9 years ago
1.1.0
9 years ago
1.0.18
9 years ago
1.0.17
9 years ago
1.0.16
9 years ago
1.0.15
9 years ago
1.0.14
9 years ago
1.0.13
9 years ago
1.0.12
9 years ago
1.0.11
9 years ago
1.0.10
9 years ago
1.0.8
9 years ago
1.0.7
9 years ago
1.0.6
9 years ago
1.0.5
9 years ago
1.0.4
9 years ago
1.0.3
9 years ago
1.0.2
9 years ago
1.0.1
9 years ago
1.0.0
9 years ago