Not working on IOS: Cannot read property 'IsAndroid' of undefined
See original GitHub issueThe error is regarding the following line of code in sound.js
:
var RNSound = require('react-native').NativeModules.RNSound;
var IsAndroid = RNSound.IsAndroid;
I have followed the instructions exactly as outlined for IOS, so I have no idea why I am getting this error. This module works perfectly on Android.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:17
- Comments:50 (4 by maintainers)
Top Results From Across the Web
Cannot read property 'IsAndroid' of undefined #215 - GitHub
I have this problem running test cases from Jest. Works fine in emulators and hardware for both Android and iOS. 17
Read more >react native sound Not working on Windows - Stack Overflow
javascript - react native sound Not working on Windows: Cannot read property 'IsAndroid' of undefined - Stack Overflow. Stack Overflow for Teams –...
Read more >Developers - Cannot read property 'IsAndroid' of undefined -
On iOS, in fresh project generated by latest version of create-react-native-app : RNSound is not defined in NativeModules of react-native .
Read more >[SSL Pinning Plugin] Error - Cannot read property 'apply' for ...
SSL Pinning Plugin Error - Cannot read property 'apply' for undefined on Android. ... It working fine on iOS device which shows configuration...
Read more >[Solved]-React Native Sound Not Working (Remote URL)
Coding example for the question React Native Sound Not Working (Remote ... sound Not working on Windows: Cannot read property 'IsAndroid' of undefined...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
none of the suggested solutions worked for me, running
react-native link
works, however it doesn’t seems to do anything, I had this error as well, and I was able to resolve it by manually addingRNSound.xcodeproj
toLibraries
folder and drag and droplibRNSound.a
toLink Binary with Libraries
of my project.I had this error as well when adding the dependencies but forgetting to recompile. After a new build it worked like a charm! cc @Frosty92