diff --git a/README.md b/README.md index c66fc106f7820fcc2948e703ea4d500c685a55e9..fcd3285c9d8cec2d56a48a90088d7ccd93c80b80 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 055d9d7398bc59ce064c8fd4e9fce3ac012e26ba..0e2579e8736e69919c23593f037f36ebc6735c2e 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 4e23adf60480b62fece5f1050e0e80ca6341a1e3..126e285fe9b81cdfcb0a9b62f9018992d0d4d92f 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 |