⚡️ Initialize Player
Add the following code to your app's entry point (index.js
or index.ts
) to initialize the player:
initPlayer(); // Call this function to initialize the Player
async function initPlayer() {
await RNExpoSonicPlayerModule.initialize({
enableRemoteControls: true,
enableNextTrack: true,
enablePreviousTrack: true,
});
}