We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In your slider, when updating volume in state, should be parse to float.
Line 16: this.setState({volume_value:parseFloat(evt.volume)});
And isn't the listener should be remove when component unmount ?
`code
componentDidMount() { this.DeviceEventVolumeListener = DeviceEventEmitter.addListener( 'VolumeControllerValueUpdatedEvent', (evt) => { console.log("update view volume "+evt.volume); this.setState({volume_value:parseFloat(evt.volume)}); } ); ReactNativeVolumeController.update(); } componentWillUnmount() { this.DeviceEventVolumeListener.remove(); }`
The text was updated successfully, but these errors were encountered:
I updated the code, and now have a other way to get this value.
onValueChange={ (value)=>{ this.isDragging = true; ReactNativeVolumeController.change(value); setTimeout(()=>{ this.isDragging = false; }
What is the version are you using?
Sorry, something went wrong.
No branches or pull requests
In your slider, when updating volume in state, should be parse to float.
Line 16:
this.setState({volume_value:parseFloat(evt.volume)});
And isn't the listener should be remove when component unmount ?
`code
The text was updated successfully, but these errors were encountered: