diff --git a/en/react-native-sound-player.md b/en/react-native-sound-player.md new file mode 100644 index 0000000000000000000000000000000000000000..13e094d6409bada6ad6b20505aec6b70213e73be --- /dev/null +++ b/en/react-native-sound-player.md @@ -0,0 +1,298 @@ +> Template version: v0.3.0 + +

+

react-native-sound-player

+

+ +This project is based on [react-native-sound-player@0.14.5](https://github.com/johnsonsu/react-native-sound-player). + +Please go to the Releases release address of the third-party library to view the supporting version information: [@react-native-oh-tpl/react-native-sound-player Releases](https://github.com/react-native-oh-library/react-native-sound-player/releases). For older versions that are not published to npm, install the tgz package by referring to the [Installation Guide](/en-us/tgz-usage.md). + +| Version | Releases info | Support RN version | +| ------------------------- | ------------------------------------------------- | -------------------------- | +| 0.14.6 | [@react-native-oh-tpl/react-native-sound-player Releases](https://github.com/react-native-oh-library/react-native-sound-player/releases) | 0.72 | + +## 1. Installation and Usage + +Go to the project directory and execute the following instruction: + +#### **npm** + +```bash +npm install @react-native-oh-tpl/react-native-sound-player +``` + +#### **yarn** + +```bash +yarn add @react-native-oh-tpl/react-native-sound-player +``` + +The following code shows the basic use scenario of the repository: + +> [!WARNING] The name of the imported repository remains unchanged. + +```js +import React from 'react'; +import { Button, View, ScrollView } from 'react-native'; +import SoundPlayer from 'react-native-sound-player'; +import { EmitterSubscription } from "react-native"; + +const SoundPlayerDemo = () => { + return ( + <> + + + +