zmxv / react-native-sound

React Native module for playing sound clips
MIT License
2.79k stars 749 forks source link

Not working on Windows: Cannot read property 'IsAndroid' of undefined #541

Closed huuchi207 closed 5 years ago

huuchi207 commented 5 years ago

Like iOS, the issue appears on Windows:

var RNSound = require('react-native').NativeModules.RNSound;
var IsAndroid = RNSound.IsAndroid;

How can I fix that? Thank you in advance!

paulmelnikow commented 5 years ago

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.