From 6d9efd3ff273fdc5defa09895413c83293a9662c Mon Sep 17 00:00:00 2001
From: renzhenhua <908237408@qq.com>
Date: Sat, 23 Dec 2023 18:34:12 +0800
Subject: [PATCH] =?UTF-8?q?[Issues:=20#I8QSZB]=20=E6=9B=B4=E6=96=B0vmall?=
=?UTF-8?q?=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-SmartRefreshLayout.md | 16 ++++++++--------
vmall/react-native-video.md | 12 ++++++------
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/vmall/react-native-SmartRefreshLayout.md b/vmall/react-native-SmartRefreshLayout.md
index 6d9f2323..b4180c00 100644
--- a/vmall/react-native-SmartRefreshLayout.md
+++ b/vmall/react-native-SmartRefreshLayout.md
@@ -1,4 +1,4 @@
-> 模板版本:v0.0.1
+> 模板版本:v0.1.1
react-native-SmartRefreshLayout
@@ -23,13 +23,13 @@
#### **yarn**
```bash
-yarn add xxx
+yarn add @react-native-oh-tpl/react-native-smartrefreshlayout
```
#### **npm**
```bash
-npm install xxx
+npm install @react-native-oh-tpl/react-native-smartrefreshlayout
```
@@ -139,7 +139,7 @@ const styles = StyleSheet.create({
```json
"dependencies": {
"rnoh": "file:../rnoh",
- "rnoh-smart-refresh-layout": "file:../../node_modules/react-native-smartrefreshlayout/harmony/smart_refresh_layout.har"
+ "rnoh-smart-refresh-layout": "file:../../node_modules/@react-native-oh-tpl/react-native-smartrefreshlayout/harmony/smart_refresh_layout.har"
}
```
@@ -158,7 +158,7 @@ ohpm install
```json
"dependencies": {
"rnoh": "file:../rnoh",
- "rnoh-smart-refresh-layout": "file:../../node_modules/react-native-smartrefreshlayout/harmony/smart_refresh_layout"
+ "rnoh-smart-refresh-layout": "file:../../node_modules/@react-native-oh-tpl/react-native-smartrefreshlayout/harmony/smart_refresh_layout"
}
```
@@ -246,19 +246,19 @@ function CustomComponentBuilder(ctx: ComponentBuilderContext) {
+ else if (ctx.descriptor.type == SMART_REFRESH_CONTROL_TYPE){
+ SmartRefreshControl({
+ ctx: ctx.rnohContext,
-+ tag: ctx.descriptor.tag,
++ tag: ctx.tag,
+ buildCustomComponent: CustomComponentBuilder
+ })
+ } else if (ctx.descriptor.type == ANY_HEADER_TYPE){
+ RNCAnyHeader({
+ ctx: ctx.rnohContext,
-+ tag: ctx.descriptor.tag,
++ tag: ctx.tag,
+ buildCustomComponent: CustomComponentBuilder
+ })
+ } else if (ctx.descriptor.type == DEFAULT_HEADER_TYPE) {
+ RNCDefaultHeader({
+ ctx: ctx.rnohContext,
-+ tag: ctx.descriptor.tag,
++ tag: ctx.tag,
+ buildCustomComponent: CustomComponentBuilder
+ })
+ }
diff --git a/vmall/react-native-video.md b/vmall/react-native-video.md
index a50d97d6..4e3dd148 100644
--- a/vmall/react-native-video.md
+++ b/vmall/react-native-video.md
@@ -1,4 +1,4 @@
-> 模板版本:v0.0.1
+> 模板版本:v0.1.1
react-native-video
@@ -23,13 +23,13 @@
#### **yarn**
```bash
-yarn add xxx
+yarn add @react-native-oh-tpl/react-native-video
```
#### **npm**
```bash
-npm install xxx
+npm install @react-native-oh-tpl/react-native-video
```
@@ -157,7 +157,7 @@ export default RNCVideoDemo;
```json
"dependencies": {
"rnoh": "file:../rnoh",
- "rnoh-video": "file:../../node_modules/react-native-video/harmony/rn_video.har"
+ "rnoh-video": "file:../../node_modules/@react-native-oh-tpl/react-native-video/harmony/rn_video.har"
}
```
@@ -176,7 +176,7 @@ ohpm install
```json
"dependencies": {
"rnoh": "file:../rnoh",
- "rnoh-slider": "file:../../node_modules/react-native-video/harmony/rn_video"
+ "rnoh-slider": "file:../../node_modules/@react-native-oh-tpl/react-native-video/harmony/rn_video"
}
```
@@ -264,7 +264,7 @@ function CustomComponentBuilder(ctx: ComponentBuilderContext) {
+ else if (ctx.descriptor.type === RNC_VIDEO_TYPE) {
+ RNCVideo({
+ ctx: ctx.rnohContext,
-+ tag: ctx.descriptor.tag,
++ tag: ctx.tag,
+ buildCustomComponent: CustomComponentBuilder
+ })
+ }
--
Gitee