From 6fdbb30e5a9439a69b84de10c196bb60947fb15f Mon Sep 17 00:00:00 2001 From: zhyx2 Date: Tue, 12 Aug 2025 09:58:58 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:#ICSH33]=20=E6=B7=BB=E5=8A=A0re?= =?UTF-8?q?act-native-sound-player=E6=8C=87=E5=AF=BC=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhyx2 --- en/react-native-sound-player.md | 298 +++++++++++++++++++++++++++++ zh-cn/react-native-sound-player.md | 296 ++++++++++++++++++++++++++++ 2 files changed, 594 insertions(+) create mode 100644 en/react-native-sound-player.md create mode 100644 zh-cn/react-native-sound-player.md diff --git a/en/react-native-sound-player.md b/en/react-native-sound-player.md new file mode 100644 index 000000000..13e094d64 --- /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 ( + <> + + + +