react-native-audio-player-button 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
<span><img src="https://user-images.githubusercontent.com/18114944/215944532-c1ce1e50-9744-4f75-899e-a801d4a2b080.png" width="250" height="500" /></span>
|
|
1
|
+
React Native Audio Player Button is a custom button with an icon for playing audio. The user is able to use this button as many as they want on the same screen without having the issue of overlapping playing audio.
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
<span><img src="https://user-images.githubusercontent.com/18114944/215944532-c1ce1e50-9744-4f75-899e-a801d4a2b080.png" width="250" height="500" /></span>
|
|
5
4
|
|
|
6
5
|
## Support
|
|
7
6
|
iOS & Android
|
|
@@ -30,7 +29,7 @@ import FAIcon from 'react-native-vector-icons/FontAwesome';
|
|
|
30
29
|
const [playingUuid, setPlayingUuid] = React.useState(null);
|
|
31
30
|
|
|
32
31
|
<AudioPlayerButton
|
|
33
|
-
audio={require('
|
|
32
|
+
audio={require('sample.mp3')}
|
|
34
33
|
itemUuid='abcdefg'
|
|
35
34
|
isSpeakerIcon={true}
|
|
36
35
|
rippled={true}
|
|
@@ -62,7 +61,7 @@ const [playingUuid, setPlayingUuid] = React.useState(null);
|
|
|
62
61
|
| iconSize | 24 or 26 | `number` | `true` | The size of the icons (play and pause icon) |
|
|
63
62
|
| iconPrimaryColor | '#000000' | `string` | `true` | The color of the icon before playing the audio |
|
|
64
63
|
| iconSecondaryColor | '#808080' | `string` | `true` | The color of the icon while playing the audio |
|
|
65
|
-
| playingUuid | '' | `string` | `false` | The uuid of the playing
|
|
64
|
+
| playingUuid | '' | `string` | `false` | The uuid of the playing audio component (to prevent playing audio overlap each other) |
|
|
66
65
|
| hasShadow | false | `boolean` | `true` | The shadow of the button (Android only) |
|
|
67
66
|
| allowPause | false | `boolean` | `true` | Allow to pause the audio when toggle the button |
|
|
68
67
|
| isFromAppBundle | false | `boolean` | `false` | Set to `true` to play the audio that is stored in the app bundle (ex: the downloaded audio) |
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-audio-player-button",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"description": "A custom button with an icon for playing audio. It is able to play the audio without overlapping each other.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
7
7
|
"types": "lib/typescript/index.d.ts",
|