From af612fbabfebe02f4d57d227f7a01521a8560003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AC=A7=E9=98=B3=E6=99=BA?= <1742104739@qq.com> Date: Wed, 29 Nov 2023 09:46:43 +0800 Subject: [PATCH] =?UTF-8?q?[Issues:=20#I8K2CZ]=20=E4=BF=AE=E6=94=B9fast-im?= =?UTF-8?q?age=EF=BC=8C=E5=B9=B6=E6=9B=B4=E6=96=B0readme=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + _sidebar.md | 1 + zh-cn/react-native-fast-image.md | 22 +++++++++++----------- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index c66fc106..fcd3285c 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ | 6 | @react-native-community/checkbox | 0.5.16 | 否 | 100% | [@react-native-oh-library/checkbox@0.5.16-0.0.2](https://github.com/react-native-oh-library/react-native-checkbox/releases/tag/0.5.16-0.0.2) | [链接](zh-cn/react-native-checkbox.md) | | 7 | react-native-linear-gradient | 3.0.0-alpha.1 | 是 | 90% | [@react-native-oh-library/react-native-linear-gradient@3.0.0-alpha.1-0.2.4](https://github.com/react-native-oh-library/react-native-linear-gradient/releases/tag/3.0.0-alpha.1-0.2.4) | [链接](zh-cn/react-native-linear-gradient.md) | | 8 | @react-native-community/progress-bar-android | 1.0.4 | 是 | 90% | [@react-native-community/progress-bar-android@1.0.4-0.0.3](https://github.com/react-native-oh-library/progress-bar-android/releases/tag/1.0.4-0.0.3) | [链接](zh-cn/progress-bar-android.md) | +| 9 | react-native-fast-image | 8.6.3 | 否 | 70% | [@react-native-oh-tpl/react-native-fast-image@8.6.3-0.0.2](https://github.com/react-native-oh-library/react-native-fast-image/releases/tag/8.6.3-0.0.2) | [链接](zh-cn/react-native-fast-image.md) | ## 社区 [react-native-oh-library](https://github.com/react-native-oh-library) \ No newline at end of file diff --git a/_sidebar.md b/_sidebar.md index 055d9d73..0e2579e8 100644 --- a/_sidebar.md +++ b/_sidebar.md @@ -8,4 +8,5 @@ - [@react-native-community/checkbox](zh-cn/react-native-checkbox.md) - [@react-native-picker/picker](zh-cn/picker.md) - [@react-native-community/progress-bar-android](zh-cn/progress-bar-android.md) + - [react-native-fast-image](zh-cn/react-native-fast-image.md) diff --git a/zh-cn/react-native-fast-image.md b/zh-cn/react-native-fast-image.md index 4e23adf6..126e285f 100644 --- a/zh-cn/react-native-fast-image.md +++ b/zh-cn/react-native-fast-image.md @@ -193,24 +193,24 @@ ohpm install | 名称 | 说明 | 类型 | 是否必填 | 原库平台 | 鸿蒙支持 | | ------------------------------ | ----------------------------------------------------------------------------------------- | ---------------- | -------- | -------- | -------- | -| `source.uri` | Source for the remote image to load. | string | Yes | All | yes | -| `source.headers?` | Headers to load the image with. e.g. { Authorization: 'someAuthToken' }. | object | No | All | yes | +| `source.uri` | Source for the remote image to load. | string | yes | All | yes | +| `source.headers?` | Headers to load the image with. e.g. { Authorization: 'someAuthToken' }. | object | yes | All | yes | | `source.priority?` | loading url priority | enum | No | All | no | | `source.cache?` | setting loading url cache mode | enum | No | All | no | -| `defaultSource?` | An asset loaded with require(...). | number | No | All | yes | -| `resizeMode?` | loading image for scale mode | enum | No | ALL | yes | -| `onLoadStart?: () => void` | Called when the image starts to load. | function | No | ALL | yes | -| `onProgress?: (event) => void` | Called when the image is loading. | function | No | All | yes | -| `onLoad?: (event) => void` | Called on a successful image fetch. Called with the width and height of the loaded image. | function | No | All | yes | -| `onError?: () => void` | Called on an image fetching error. | function | No | All | yes | -| `onLoadEnd?: () => void` | Called when the image finishes loading, whether it was successful or an error. | function | No | All | yes | -| `tintColor?` | If supplied, changes the color of all the non-transparent pixels to the given color. | number \| string | No | All | yes | +| `defaultSource?` | An asset loaded with require(...). | number | yes | All | yes | +| `resizeMode?` | loading image for scale mode | enum | yes | ALL | yes | +| `onLoadStart?: () => void` | Called when the image starts to load. | function | yes | ALL | yes | +| `onProgress?: (event) => void` | Called when the image is loading. | function | yes | All | yes | +| `onLoad?: (event) => void` | Called on a successful image fetch. Called with the width and height of the loaded image. | function | yes | All | yes | +| `onError?: () => void` | Called on an image fetching error. | function | yes | All | yes | +| `onLoadEnd?: () => void` | Called when the image finishes loading, whether it was successful or an error. | function | yes | All | yes | +| `tintColor?` | If supplied, changes the color of all the non-transparent pixels to the given color. | number \| string | yes | All | yes | ## 静态方法 | 名称 | 说明 | 类型 | 是否必填 | 原库平台 | 鸿蒙支持 | | ------------------------------------------------- | ------------------------------------------ | -------- | -------- | -------- | -------- | -| `FastImage.preload: (source[]) => void` | Preload images to display later. e.g. | function | no | All | No | +| `FastImage.preload: (source[]) => void` | Preload images to display later. e.g. | function | No | All | No | | `FastImage.clearMemoryCache: () => Promise` | Clear all images from memory cache. | function | No | All | no | | `FastImage.clearDiskCache: () => Promise` | Clear all images from disk cache. priority | function | No | All | no | -- Gitee