question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RNSound.IsAndroid bug

See original GitHub issue

React Native - 0.42.0 React Native Sound - 0.9.1

I have only this snippet of code, nothing special:

const whoosh = new Sound(requireAudio, (error) => {
            if (error) {
                console.log('error', error);
            } else {
                whoosh.setSpeed(1);
                console.log('duration', whoosh.getDuration());
                whoosh.play(() => whoosh.release());
            }
        });

but the error is shown when it’s trying to import the module, not on execution screen shot 2017-03-07 at 1 41 09 pm

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
radikcommented, Feb 20, 2018

Manually adding libRNSound to ‘Linked Farmeworks…’ in XCode resolved for me screen shot 2018-02-20 at 10 14 25 pm

8reactions
asadmcommented, Mar 31, 2017

For anyone stuck at this, you are probably forgetting rebuilding. ie: Uninstalling the APK and running react-native run-android to build and deploy apk again.

Native android libraries that you just linked need to be deployed. They can’t be hot-reloaded.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RNSound.IsAndroid error (React Native) - Stack Overflow
Most of the time this error means the package was not linked correctly. To confirm if this is the case:- Go to android/app/src/main/java/....
Read more >
null is not an object (evaluating 'RNSound.IsAndroid') #618
Description I tried installing and using this package for playing an audio file which I fetch from an API. What have you tried?...
Read more >
react-native-sound/Help - Gitter
im getting the issue undefined is not an object (evaluating 'RNSound.ISAndroid') , i already ran react-native link react-native-sound. Rodrigo Wippel.
Read more >
[Solved]-RNSound.IsAndroid error (React Native)
Coding example for the question RNSound.IsAndroid error (React Native)-React Native.
Read more >
Using sound in React Native | Code and Stuff
Should. In practice, it didn't. Instead, it kept giving me the error: null is not an object (evaluating 'RNSound.IsAndroid').
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found