How to install versión 0.6.0 #450
-
Hello, After installing react-native-audio-api in a blank expo development build by
And executing
I receive the following error
How do I make it work? Note: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Did you add the react-native-audio-api plugin in your app.json? If you look at the withAudioAPi.ts file you will see that this is calling the function with the second argument being undefined
The fix:
You can specify the other values as well if you need to. Hope this helps |
Beta Was this translation helpful? Give feedback.
-
Fix for that issue will be released in 0.6.1. It will be possible to build without plugin and ofc we will provide info about it in docs |
Beta Was this translation helpful? Give feedback.
Did you add the react-native-audio-api plugin in your app.json?
The error is most likely because you have something like this
plugins: ["react-native-audio-api]
If you look at the withAudioAPi.ts file you will see that this is calling the function with the second argument being undefined
Then trying to destructure the object here will throw this error
The fix:
do something like this in your app.json
You can specify the other values as well if you need to. Hope this helps