qiuxiang / react-native-recording

React Native audio recording module used for DSP with Android + iOS
MIT License
110 stars 62 forks source link

TypeError: null is not an object (evaluating 'Recording.init') #28

Open anilsamuel opened 3 years ago

anilsamuel commented 3 years ago

I get the error "TypeError: null is not an object (evaluating 'Recording.init')" during

    useEffect(() => {
        Recording.init({
            bufferSize: 4096,
            sampleRate: 44100,
            bitsPerChannel: 16,
            channelsPerFrame: 1,
        });
        })

Please help.

lzukanovic commented 3 years ago

Had the same error on react native version 0.64.x. Just ran npx react-native run-android and it solved the issue.

anilsamuel commented 3 years ago

Had the same error on react native version 0.64.x. Just ran npx react-native run-android and it solved the issue.

I am pretty sure I tried those; i shall update the threads when i try same next time.

mdyerf commented 3 years ago

I have the same problem and I don't know what to do please tell me that what should I do exactly

Had the same error on react native version 0.64.x. Just ran npx react-native run-android and it solved the issue.

I am pretty sure I tried those; i shall update the threads when i try same next time.