The callback prepareRecordingAtPath() exists in module AudioRecorderManager, but only one callback may be registered to a function in a native module. #334
Expected behaviour : it should record audio when user click multiple times on record audio.
It keeps on crashing and prompt with a message "The callback prepareRecordingAtPath() exists in module AudioRecorderManager, but only one callback may be registered to a function in a native module". when user click on the record audio.
Version
Tell us which versions you are using ( you can see the versions in your package.json ):
react-native-audio : 4.3.0 react-native :0.57.4 react : 16.6.0-alpha.8af6728 using react-native-sound ? Yes
Expected behaviour : it should record audio when user click multiple times on record audio.
It keeps on crashing and prompt with a message "The callback prepareRecordingAtPath() exists in module AudioRecorderManager, but only one callback may be registered to a function in a native module". when user click on the record audio.
Steps to reproduce
let newPath = audioPath + '/' + this.nameGenerator() this.setState({ currentAudioPath: newPath }, () => { console.log('checkl==== ', this.state.currentAudioPath)