You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Bug
There is an error on react-native-track-player/lib/src/trackPlayer.js:44:18
export function registerPlaybackService(factory) {
if (Platform.OS === 'android') {
// Registers the headless task
AppRegistry.registerHeadlessTask('TrackPlayer', factory);
}
else if (Platform.OS === 'web') {
factory()(); // <--- HERE there is an extra ()
}
else {
// Initializes and runs the service in the next tick
setImmediate(factory());
}
}
Describe the Bug
There is an error on react-native-track-player/lib/src/trackPlayer.js:44:18
Code To Reproduce
I have the error using...
Environment Info:
I'm using Expo react web with
react-native-track-player
version 4.1.1I removed on my node modules the extra '()' and it work as expected.
Regards
The text was updated successfully, but these errors were encountered: