React-native-sound: undefined is not an object (evaluating RNSound.isAndroid)

Created on 18 Mar 2019  路  6Comments  路  Source: zmxv/react-native-sound

I get this error message on iphone simulator only by using this

const Sound = require('react-native-sound');

...any ideas?

build question

All 6 comments

I am resolved this issue by manually link library in X code, actually i did react-native link that is not giving any error so assume it's linked but when i have checked xcode then see this library is not linked so when i have linked manually and create new build then it's working perfectly.

Can you explain more how did you link it ?

same issue

same issue

I solved this problem by this way.

https://github.com/zmxv/react-native-sound/wiki/Installation

But don't forget to change compileword to just like others at android/settings.gradle. I think it was "implements" or "implement" something like that. compile is the old word RN doesn't use it anymore.

And also I didn't use react-native link because when I used it generated a huge problem.

Thanks @naklow12 , great solution! Works for me.
Wonder why react-native link breaks things though ...

Hi! If you're still having this problem, could you please post a link to a project that reproduces the problem, give information about your environment, and say what steps you have already tried?

This is the most common issue faced by react-native-sound users and it would be good to add documentation listing the possible resolutions. A pull request would be welcome; I've opened #592 to track that.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

facuacostag picture facuacostag  路  10Comments

esutton picture esutton  路  19Comments

adrian621 picture adrian621  路  15Comments

FatemeKhodayari picture FatemeKhodayari  路  12Comments

badpenguin picture badpenguin  路  21Comments