Skip to content

Commit

Permalink
Merge branch 'prod' of github.com:Lomray-Software/react-native-apple-…
Browse files Browse the repository at this point in the history
…music into prod
  • Loading branch information
trusasha committed Jan 5, 2024
2 parents 200b2f0 + a436455 commit 89e393c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,17 @@ The package provides hooks for reactive states in your components:

```javascript
import React from 'react';
import { View } from 'react-native';
import { useCurrentSong, useIsPlaying } from '@lomray/react-native-apple-music';

function MusicPlayerComponent() {
const currentSong = useCurrentSong();
const isPlaying = useIsPlaying();

return (
<div>
<View>
{isPlaying ? 'Playing' : 'Paused'} - {currentSong?.title || 'No song playing'}
</div>
</View>
);
}
```
Expand Down

0 comments on commit 89e393c

Please sign in to comment.