I am updating an old project. I have installed new react-native and new modules. However, I am getting an issue with react-native-sound:
[runtime not ready]: TypeError: _$$_REQUIRE(_dependencyMap[14], (...)react-native-sound").setCategory is not a function (it is undefined)
My code in question seems to be:
Sound.setCategory('Playback');
I am using:
- react-native: 0.82.1
- react-native-sound: 0.13.0
I did run pod install and it runs successfully but also gives the message:
==================== DEPRECATION NOTICE ===================== Calling
pod installdirectly is deprecated in React Native because we are moving away from Cocoapods toward alternative solutions to build the project.
- If you are using Expo, please run:
npx expo run:ios- If you are using the Community CLI, please run:
yarn ios=============================================================
I am neither using expo nor yarn, but am using npm/npx.
I run my project with npx react-native run-ios
What is my issues and what do I need to do to resolve this situation?