diff --git a/vmall/react-native-SmartRefreshLayout.md b/vmall/react-native-SmartRefreshLayout.md index 6d9f23230ac8011fea3ac196539b4484ff8c363c..b4180c005f98e766b2450c719820547f39695c90 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 a50d97d62485500f337b7d97cefd477470e1186d..4e3dd14841966dad657961822ca68e6d2def8529 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 + }) + }