From 80dce8532b0b4080fb4ad1cb81d465aabb455a69 Mon Sep 17 00:00:00 2001
From: renzhenhua <908237408@qq.com>
Date: Fri, 22 Dec 2023 14:21:36 +0800
Subject: [PATCH 1/3] =?UTF-8?q?[Issues:=20#I8QK8B]=20=E6=9B=B4=E6=96=B0fas?=
=?UTF-8?q?t-image=20vmall=20=E6=96=87=E6=A1=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
vmall/react-native-fast-image.md | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/vmall/react-native-fast-image.md b/vmall/react-native-fast-image.md
index 89f7e7e1..8f6e038c 100644
--- a/vmall/react-native-fast-image.md
+++ b/vmall/react-native-fast-image.md
@@ -1,4 +1,4 @@
-> 模板版本:v0.0.1
+> 模板版本:v0.1.1
react-native-fast-image
@@ -23,13 +23,13 @@
#### **yarn**
```bash
-yarn add xxx
+yarn add @react-native-oh-tpl/react-native-fast-image
```
#### **npm**
```bash
-npm install xxx
+npm install @react-native-oh-tpl/react-native-fast-image
```
@@ -71,7 +71,7 @@ const YourImage = () => (
```json
"dependencies": {
"rnoh": "file:../rnoh",
- "rnoh-fast-image": "file:../../node_modules/react-native-fast-image/harmony/fast_image.har"
+ "rnoh-fast-image": "file:../../node_modules/@react-native-oh-tpl/react-native-fast-image/harmony/fast_image.har"
}
```
@@ -90,7 +90,7 @@ ohpm install
```json
"dependencies": {
"rnoh": "file:../rnoh",
- "rnoh-fast-image": "file:../../node_modules/react-native-fast-image/harmony/fast_image"
+ "rnoh-fast-image": "file:../../node_modules/@react-native-oh-tpl/react-native-fast-image/harmony/fast_image"
}
```
@@ -179,7 +179,6 @@ function CustomComponentBuilder(ctx: ComponentBuilderContext) {
+ RNFastImage({
+ ctx: ctx.rnohContext,
+ tag: ctx.descriptor.tag,
-+ buildCustomComponent: CustomComponentBuilder
+ })
+ }
...
--
Gitee
From a045320f1ebd7c0170a463dd96d8a953432a9322 Mon Sep 17 00:00:00 2001
From: renzhenhua <908237408@qq.com>
Date: Fri, 22 Dec 2023 16:39:23 +0800
Subject: [PATCH 2/3] =?UTF-8?q?[Issues:=20#I8QK8B]=20=E6=9B=B4=E6=96=B0fas?=
=?UTF-8?q?t-image=20vmall=20=E6=96=87=E6=A1=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
vmall/react-native-fast-image.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vmall/react-native-fast-image.md b/vmall/react-native-fast-image.md
index 8f6e038c..cc11757c 100644
--- a/vmall/react-native-fast-image.md
+++ b/vmall/react-native-fast-image.md
@@ -178,7 +178,7 @@ function CustomComponentBuilder(ctx: ComponentBuilderContext) {
+ else if (ctx.descriptor.type === FAST_IMAGE_TYPE) {
+ RNFastImage({
+ ctx: ctx.rnohContext,
-+ tag: ctx.descriptor.tag,
++ tag: ctx.tag,
+ })
+ }
...
--
Gitee
From d0faf852aa133013298574c8abd15a53dc1b5075 Mon Sep 17 00:00:00 2001
From: Louis Chan
Date: Fri, 22 Dec 2023 08:49:10 +0000
Subject: [PATCH 3/3] =?UTF-8?q?[Issues:=20#I8QK8B]=20=E6=9B=B4=E6=96=B0fas?=
=?UTF-8?q?t-image=20vmall=20=E6=96=87=E6=A1=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
vmall/react-native-fast-image.md | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/vmall/react-native-fast-image.md b/vmall/react-native-fast-image.md
index cc11757c..8924d122 100644
--- a/vmall/react-native-fast-image.md
+++ b/vmall/react-native-fast-image.md
@@ -154,16 +154,7 @@ std::vector> PackageProvider::getPackages(Package::Cont
打开 `entry/src/main/ets/pages/index.ets`,添加:
```diff
-import {
- RNApp,
- ComponentBuilderContext,
- RNAbility,
- AnyJSBundleProvider,
- MetroJSBundleProvider,
- ResourceJSBundleProvider,
-} from 'rnoh'
-import { SampleView, SAMPLE_VIEW_TYPE, PropsDisplayer } from "rnoh-sample-package"
-import { createRNPackages } from '../RNPackagesFactory'
+...
+ import { RNFastImage, FAST_IMAGE_TYPE } from "rnoh-fast-image"
@Builder
--
Gitee