Skip to content
New issue

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

undefined is not an object (evaluating RNSound.isAndroid) #556

Closed
unutoiul opened this issue Mar 18, 2019 · 6 comments
Closed

undefined is not an object (evaluating RNSound.isAndroid) #556

unutoiul opened this issue Mar 18, 2019 · 6 comments

Comments

@unutoiul
Copy link

unutoiul commented Mar 18, 2019

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

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

...any ideas?

@manishsxnaa
Copy link

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.

@naklow12
Copy link

Can you explain more how did you link it ?

@mlop113

This comment has been minimized.

@naklow12
Copy link

naklow12 commented Apr 18, 2019

same issue

I solved this problem by this way.

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

But don't forget to change compile word 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.

@3210jr
Copy link

3210jr commented Apr 30, 2019

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

@paulmelnikow
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants