-
Notifications
You must be signed in to change notification settings - Fork 748
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
0.10.4 Cannot read property 'IsAndroid' of undefined #352
Comments
On iOS emulator: The same issue. |
The same issue appears on android with "react": "16.0.0", "react-native": "0.50.3", |
I had this issue, you can try to do:
and then try to compile and run again |
Also happened to me, deleting the app and reinstalling worked for me, may be a problem with the linking |
Having the same issue with |
|
@zkeyword are you good to go now? |
I'm having the same error in iOS hardware:
I installed via |
I can confirm this issue as well. Neither pod install or running link solves it. |
Steps to fix:
The reason for this is pretty simple if you think about it. Whenever you install a new module that uses native code extensions the app you have previously deployed to your device will NOT contain that code so needs to be recompiled and re-deployed to the device. Simply refreshing the existing app only refreshes the JavaScript code, not any native underlying app code on the device. |
+1 |
after install module
makes working perfect |
on Android: so : I Compile the app. I According to Manual Installation add it to MainApplication.java |
Try to check if the linking is performed correctly. I encountered the same issue on iOS and resolved it by performing the linking manually:
|
I have the issue on android. "Cannot read property 'IsAndroid' of undefined"
Linking is showing as linked |
Solved by adding permission in manifest file |
is the record_audio permission?? |
I had resolved it by adding code in main application - like .addpackage(...sound) |
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. |
"react": "^16.2.0",
"react-native": "^0.51.0"
it is my package version,i found Cannot read property 'IsAndroid' of undefined this error on android ,can you help me!
The text was updated successfully, but these errors were encountered: