TrackPlayer.registerPlaybackService without file index.js

125 views Asked by At

enter image description here

My react native project does not have an index.js file to be able to register registerPlaybackService, I only have an App.js file

I searched a lot and found a way to add the index.js file and change the entryPoint

1

There are 1 answers

0
Bob J On

I don't use an index.js. React.native.track.player works fine for me in app.js having the registration there.

I developed using expo dev client. I have the later RNTP rc. I have built for both play store and App Store. I use remote (Bluetooth) controls.

I too was concerned because of what the documentation said.