I'm working on project for android and windows using react native CLI and I want to play sound when the user clicks a butto. For that, I've used react-native-sound
as the most famous library to play sounds on react native and the it supports windows as they say on their docs;
It works fine on android, but on Windows it produces an error:
var RNSound = require('react-native').NativeModules.RNSound;
var IsAndroid = RNSound.IsAndroid;
I've tried to log the require('react-native').NativeModules
but the `RNSound wasn't there.
Is there any way to make it work on windows or can suggest some other way to play sounds on both android and windows using react native?