文件名称:react-native-use-sound:useSound React用于播放声音的React Native钩子:speaker_high_volume:
文件大小:462KB
文件格式:ZIP
更新时间:2024-06-14 07:42:39
TypeScript
useSound-本机使用声音 :speaker_high_volume: 一个React Native Hook,用于播放声音 :speaker_high_volume: react-native-use-sound很大程度上基于@joshwcomeau 安装 :warning: 您必须先安装 :warning: npm i react-native-sound cd ios && pod install 然后,可以添加我们的挂钩: npm install react-native-use-sound 例子 基本范例 import useSound from "react-native-use-sound" ; import { Button } from "react-native" ; const MusicButton = ( ) => { const coolMusic = "http://commondatastorage.googleapis.com/cod
【文件预览】:
react-native-use-sound-master
----example()
--------ios()
--------utils.ts(351B)
--------index.js(183B)
--------.watchmanconfig(2B)
--------android()
--------package.json(1KB)
--------__tests__()
--------app.json(51B)
--------package-lock.json(390KB)
--------.eslintrc.js(148B)
--------tsconfig.json(5KB)
--------.gitignore(846B)
--------App.tsx(3KB)
--------.buckconfig(114B)
--------.prettierrc.js(120B)
--------yarn.lock(300KB)
--------metro.config.js(300B)
--------.gitattributes(16B)
--------babel.config.js(77B)
----package.json(1KB)
----package-lock.json(350KB)
----.DS_Store(6KB)
----src()
--------utils.ts(412B)
--------types.ts(718B)
--------index.ts(3KB)
----LICENSE.md(1KB)
----.gitignore(13B)
----README.md(4KB)