From 114e982fe908bccd03502491064604557287147b Mon Sep 17 00:00:00 2001 From: fzxlzy <810528574@qq.com> Date: Fri, 8 Dec 2023 09:48:57 +0800 Subject: [PATCH] =?UTF-8?q?[Issues:=20#I8MPPA]=20=E4=BF=AE=E5=A4=8Dreact-n?= =?UTF-8?q?ative-image-picker=E5=B1=9E=E6=80=A7=E6=8F=8F=E8=BF=B0=E9=94=99?= =?UTF-8?q?=E8=AF=AF=EF=BC=8C=E6=B7=BB=E5=8A=A0=E9=9D=99=E6=80=81=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zh-cn/react-native-image-picker.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/zh-cn/react-native-image-picker.md b/zh-cn/react-native-image-picker.md index f7f7400f..5f9c3121 100644 --- a/zh-cn/react-native-image-picker.md +++ b/zh-cn/react-native-image-picker.md @@ -242,11 +242,18 @@ ohpm install | fileSize | The file size | number | yes | iOS Android | yes | | type | The file type | string | yes | iOS Android | yes | | fileName | The file name | string | yes | iOS Android | yes | -| duration | The selected video duration in seconds | number | no | iOS Android | yes | +| duration | The selected video duration in seconds | number | no | iOS Android | no | | bitrate | The average bitrate (in bits/sec) of the selected video, if available. (Android only) | number | no | Android | no | -| timestamp | Timestamp of the asset. Only included if 'includeExtra' is true | string | no | iOS Android | yes | +| timestamp | Timestamp of the asset. Only included if 'includeExtra' is true | string | no | iOS Android | no | | id | local identifier of the photo or video. On Android, this is the same as fileName | string | no | iOS Android | yes | +## 静态方法 + +| 名称 | 说明 | 类型 | 是否必填 | 原库平台 | 鸿蒙支持 | +| ------------------ | -------------------------------------- | -------- | -------- | --------------- | -------- | +| launchCamera | Launch camera to take photo or video. | function | yes | iOS Android Web | no | +| launchImageLibrary | Launch gallery to pick image or video. | function | yes | iOS Android Web | yes | + ## 遗留问题 - 只实现了选择图库的接口属性,相机功能暂未适配 -- Gitee