From 969cdd35a615846e2de0cf876ee1eae7cfbd5c0f Mon Sep 17 00:00:00 2001 From: chenwenhui133 <2984202073@qq.com> Date: Sat, 21 Jun 2025 11:27:09 +0800 Subject: [PATCH 1/4] =?UTF-8?q?docs:=20[Issues:=20#ICGSNB]=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9react-native-picker=E5=BC=80=E6=BA=90=E5=8D=8F?= =?UTF-8?q?=E8=AE=AE=E8=B7=B3=E8=BD=AC=E9=94=99=E8=AF=AF=EF=BC=88=E6=BA=90?= =?UTF-8?q?=E5=BA=93=E6=B2=A1=E6=9C=89=E5=BC=80=E6=BA=90=E5=8D=8F=E8=AE=AE?= =?UTF-8?q?=EF=BC=8C=E8=B7=B3=E8=BD=AC=E5=88=B0=E9=B8=BF=E8=92=99=E5=BA=93?= =?UTF-8?q?=E7=9A=84=E5=8D=8F=E8=AE=AE=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-native-picker.md | 2 +- zh-cn/react-native-picker.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/en/react-native-picker.md b/en/react-native-picker.md index 9826ddca..493b5091 100644 --- a/en/react-native-picker.md +++ b/en/react-native-picker.md @@ -308,4 +308,4 @@ Check the release version information in the release address of the third-party ## License -This project is licensed under [The MIT License (MIT)](https://mit-license.org/). +This project is licensed under [The MIT License (MIT)](https://github.com/react-native-oh-library/react-native-picker/blob/sig/LICENSE). diff --git a/zh-cn/react-native-picker.md b/zh-cn/react-native-picker.md index 16c39bd6..31abd460 100644 --- a/zh-cn/react-native-picker.md +++ b/zh-cn/react-native-picker.md @@ -309,4 +309,4 @@ ohpm install ## 开源协议 -本项目基于 [The MIT License (MIT)](https://mit-license.org/) ,请自由地享受和参与开源。 \ No newline at end of file +本项目基于 [The MIT License (MIT)](https://github.com/react-native-oh-library/react-native-picker/blob/sig/LICENSE) ,请自由地享受和参与开源。 \ No newline at end of file -- Gitee From 89371138a861414050e161fecfe809b292592448 Mon Sep 17 00:00:00 2001 From: chenwenhui133 <2984202073@qq.com> Date: Sat, 21 Jun 2025 11:29:30 +0800 Subject: [PATCH 2/4] =?UTF-8?q?docs:=20[Issues:=20#ICGSNB]=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9react-native-audio=E5=BA=93=E7=9A=84=E7=A4=BA=E4=BE=8B?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-native-audio.md | 16 +++++++++++++--- zh-cn/react-native-audio.md | 16 +++++++++++++--- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/en/react-native-audio.md b/en/react-native-audio.md index 5269852b..ab42d242 100644 --- a/en/react-native-audio.md +++ b/en/react-native-audio.md @@ -43,6 +43,7 @@ import { SafeAreaView, StatusBar, Text, Button, TextInput, View, Switch, StyleSh import { AudioRecorder, AudioUtils } from 'react-native-audio'; type FileType = { + [key: string]: any, base64: string; duration: number; status: string; @@ -50,6 +51,15 @@ type FileType = { audioFileURL: string; } +interface ObjectDataType { + currentTime: number, + duration: number, + status: string, + audioFileSize: number, + audioFileURL: string, + base64: string, +} + export default () => { const [second, setSecond] = useState(0); const [file, setFile] = useState(); @@ -77,10 +87,10 @@ export default () => { MeasurementMode: false,//only ios IncludeBase64: true }) - AudioRecorder.onProgress = (data) => { + AudioRecorder.onProgress = (data: ObjectDataType) => { setSecond(data.currentTime); } - AudioRecorder.onFinished = (data) => { + AudioRecorder.onFinished = (data: ObjectDataType) => { const { duration, status, audioFileSize, audioFileURL } = data let str = data.base64.slice(0, 20); setFile({ base64: str + '...', duration, status, audioFileSize, audioFileURL }) @@ -154,7 +164,7 @@ export default () => { - {!!file.base64 && + {!!file?.base64 && 录音文件: {`audio_demo.m4a`} diff --git a/zh-cn/react-native-audio.md b/zh-cn/react-native-audio.md index 612eeb6f..436b0644 100644 --- a/zh-cn/react-native-audio.md +++ b/zh-cn/react-native-audio.md @@ -43,6 +43,7 @@ import { SafeAreaView, StatusBar, Text, Button, TextInput, View, Switch, StyleSh import { AudioRecorder, AudioUtils } from 'react-native-audio'; type FileType = { + [key: string]: any, base64: string; duration: number; status: string; @@ -50,6 +51,15 @@ type FileType = { audioFileURL: string; } +interface ObjectDataType { + currentTime: number, + duration: number, + status: string, + audioFileSize: number, + audioFileURL: string, + base64: string, +} + export default () => { const [second, setSecond] = useState(0); const [file, setFile] = useState(); @@ -77,10 +87,10 @@ export default () => { MeasurementMode: false,//only ios IncludeBase64: true }) - AudioRecorder.onProgress = (data) => { + AudioRecorder.onProgress = (data: ObjectDataType) => { setSecond(data.currentTime); } - AudioRecorder.onFinished = (data) => { + AudioRecorder.onFinished = (data: ObjectDataType) => { const { duration, status, audioFileSize, audioFileURL } = data let str = data.base64.slice(0, 20); setFile({ base64: str + '...', duration, status, audioFileSize, audioFileURL }) @@ -154,7 +164,7 @@ export default () => { - {!!file.base64 && + {!!file?.base64 && 录音文件: {`audio_demo.m4a`} -- Gitee From 451f742e562774fc35477a9570a7562c1507db18 Mon Sep 17 00:00:00 2001 From: chenwenhui133 <2984202073@qq.com> Date: Sat, 21 Jun 2025 18:04:30 +0800 Subject: [PATCH 3/4] =?UTF-8?q?docs:=20[Issues:=20#ICGSNB]=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9react-native-drawer-layout-polyfill=E7=9A=84=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-native-drawer-layout-polyfill.md | 12 ++++++------ zh-cn/react-native-drawer-layout-polyfill.md | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/en/react-native-drawer-layout-polyfill.md b/en/react-native-drawer-layout-polyfill.md index c2d616cc..5d297b13 100644 --- a/en/react-native-drawer-layout-polyfill.md +++ b/en/react-native-drawer-layout-polyfill.md @@ -43,7 +43,7 @@ import { Button, Text, StyleSheet, View, TextInput } from "react-native"; import DrawerLayout from "react-native-drawer-layout-polyfill"; const App = () => { - const drawerLayoutRef = useRef(null); + const drawerLayoutRef = useRef<{ openDrawer: () => void, closeDrawer: () => void }>(null); const [drawerPosition, setDrawerPosition] = useState("left"); const [keyboardDismissMode, setKeyboardDismissMode] = useState("none"); const [drawerLockMode, setDrawerLockMode] = useState("unlocked "); @@ -86,27 +86,27 @@ const App = () => { } }; - const changeDrawerLockMode = (type) => { + const changeDrawerLockMode = (type: string) => { console.log("drawerLockMode-Modify the lock mode of the pop-up box", type); setDrawerLockMode(type); }; - const handleDrawerOpen = (e) => { + const handleDrawerOpen = (e: any) => { console.log("onDrawerOpen-Open the callback in the pop-up box"); setIsOpen("Open"); }; - const handleDrawerClose = (e) => { + const handleDrawerClose = (e: any) => { console.log("onDrawerClose-Turn off the bomb frame"); setIsOpen("closure"); }; - const handleDrawerSlide = (e) => { + const handleDrawerSlide = (e: any) => { console.log("onDrawerSlide-The callback function when navigation view occurs when interacting"); setDrawerSlideOutput(JSON.stringify(e.nativeEvent)); }; - const handleDrawerStateChanged = (e) => { + const handleDrawerStateChanged = (e: any) => { console.log("onDrawerStateChanged-The recovery function when the state of the navigation view changes"); setDrawerStateChangedOutput(JSON.stringify(e)); }; diff --git a/zh-cn/react-native-drawer-layout-polyfill.md b/zh-cn/react-native-drawer-layout-polyfill.md index aabb0414..1b65faf2 100644 --- a/zh-cn/react-native-drawer-layout-polyfill.md +++ b/zh-cn/react-native-drawer-layout-polyfill.md @@ -43,7 +43,7 @@ import { Button, Text, StyleSheet, View, TextInput } from "react-native"; import DrawerLayout from "react-native-drawer-layout-polyfill"; const App = () => { - const drawerLayoutRef = useRef(null); + const drawerLayoutRef = useRef<{ openDrawer: () => void, closeDrawer: () => void }>(null); const [drawerPosition, setDrawerPosition] = useState("left"); const [keyboardDismissMode, setKeyboardDismissMode] = useState("none"); const [drawerLockMode, setDrawerLockMode] = useState("unlocked "); @@ -86,27 +86,27 @@ const App = () => { } }; - const changeDrawerLockMode = (type) => { + const changeDrawerLockMode = (type: string) => { console.log("drawerLockMode-修改弹框锁定模式", type); setDrawerLockMode(type); }; - const handleDrawerOpen = (e) => { + const handleDrawerOpen = (e: any) => { console.log("onDrawerOpen-打开弹框的回调"); setIsOpen("打开"); }; - const handleDrawerClose = (e) => { + const handleDrawerClose = (e: any) => { console.log("onDrawerClose-关闭弹框的回调"); setIsOpen("关闭"); }; - const handleDrawerSlide = (e) => { + const handleDrawerSlide = (e: any) => { console.log("onDrawerSlide-导航视图发生交互时的回调函数"); setDrawerSlideOutput(JSON.stringify(e.nativeEvent)); }; - const handleDrawerStateChanged = (e) => { + const handleDrawerStateChanged = (e: any) => { console.log("onDrawerStateChanged-导航视图的状态发生变化时的回调函数"); setDrawerStateChangedOutput(JSON.stringify(e)); }; -- Gitee From 6824c69e142554e18c155251661499e693d098b1 Mon Sep 17 00:00:00 2001 From: chenwenhui133 <2984202073@qq.com> Date: Sat, 21 Jun 2025 18:40:31 +0800 Subject: [PATCH 4/4] =?UTF-8?q?docs:=20[Issues:=20#ICGSNB]=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9react-native-popup-menu=E7=9A=84=E7=A4=BA=E4=BE=8B?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-native-popup-menu.md | 14 +++++++------- zh-cn/react-native-popup-menu.md | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/en/react-native-popup-menu.md b/en/react-native-popup-menu.md index f631ff79..c40b4400 100644 --- a/en/react-native-popup-menu.md +++ b/en/react-native-popup-menu.md @@ -40,7 +40,13 @@ The following code shows the basic use scenario of the repository: ```js // your entry point -import { MenuProvider } from "react-native-popup-menu"; +import { + MenuProvider, + Menu, + MenuOptions, + MenuOption, + MenuTrigger, +} from "react-native-popup-menu"; export const App = () => ( @@ -49,12 +55,6 @@ export const App = () => ( ); // somewhere in your app -import { - Menu, - MenuOptions, - MenuOption, - MenuTrigger, -} from "react-native-popup-menu"; import { Text, View, diff --git a/zh-cn/react-native-popup-menu.md b/zh-cn/react-native-popup-menu.md index d6052b98..8ad40020 100644 --- a/zh-cn/react-native-popup-menu.md +++ b/zh-cn/react-native-popup-menu.md @@ -40,7 +40,13 @@ yarn add react-native-popup-menu@0.16.1 ```js // your entry point -import { MenuProvider } from "react-native-popup-menu"; +import { + MenuProvider, + Menu, + MenuOptions, + MenuOption, + MenuTrigger, +} from "react-native-popup-menu"; export const App = () => ( @@ -49,12 +55,6 @@ export const App = () => ( ); // somewhere in your app -import { - Menu, - MenuOptions, - MenuOption, - MenuTrigger, -} from "react-native-popup-menu"; import { Text, View, -- Gitee