diff --git a/zh-cn/react-native-section-list-get-item-layout.md b/zh-cn/react-native-section-list-get-item-layout.md index 35353637bb26ebd80e14dc8250b24e5a22d581f6..ff14fa93ccd5846f0ffb11877fede460750af379 100644 --- a/zh-cn/react-native-section-list-get-item-layout.md +++ b/zh-cn/react-native-section-list-get-item-layout.md @@ -1,19 +1,20 @@ -> 模板版本:v0.1.3 +> 模板版本:v0.2.2

rn-section-list-get-item-layout

+

- Supported platforms + Supported platforms License

-> [!tip] [Github 地址](https://github.com/jsoendermann/rn-section-list-get-item-layout) +> [!TIP] [Github 地址](https://github.com/jsoendermann/rn-section-list-get-item-layout) ## 安装与使用 @@ -37,6 +38,8 @@ yarn add react-native-section-list-get-item-layout@^2.2.3 下面的代码展示了这个库的基本使用场景: +> [!WARNING] 使用时 import 的库名不变。 + ```js import sectionListGetItemLayout from "react-native-section-list-get-item-layout"; @@ -69,7 +72,7 @@ class MyComponent extends React.Component { 本文档内容基于以下版本验证通过: -1. RNOH:0.72.11; SDK:OpenHarmony(api11) 4.1.0.53; IDE:DevEco Studio 4.1.3.412; ROM:2.0.0.52(SP22C00E52R1P17log); +1. RNOH:0.72.27; SDK:HarmonyOS NEXT Developer Beta1; IDE:DevEco Studio 5.0.1.430; ROM:3.0.0.26; ## API diff --git a/zh-cn/react-native-snap-carousel.md b/zh-cn/react-native-snap-carousel.md index 3716081e45b73f2be32fa968b7549ac13efa0a5a..23c185f2161caa65279c7a6497f560e48ab4a7dc 100644 --- a/zh-cn/react-native-snap-carousel.md +++ b/zh-cn/react-native-snap-carousel.md @@ -1,5 +1,5 @@ -> 模板版本:v0.1.3 +> 模板版本:v0.2.2

react-native-snap-carousel

@@ -7,10 +7,10 @@

License - +

-> [!tip] [Github 地址](https://github.com/react-native-oh-library/react-native-snap-carousel) +> [!TIP] [Github 地址]( https://github.com/react-native-oh-library/react-native-snap-carousel) ## 安装与使用 @@ -25,17 +25,19 @@ #### **npm** ```bash -$ npm install @react-native-oh-tpl/react-native-snap-carousel@file:# +npm install @react-native-oh-tpl/react-native-snap-carousel@file:# ``` ```bash -$ yarn add @react-native-oh-tpl/react-native-snap-carousel@file:# +yarn add @react-native-oh-tpl/react-native-snap-carousel@file:# ``` 下面的代码展示了这个库的基本使用场景: +> [!WARNING] 使用时 import 的库名不变。 + ```js import React, { useState } from "react"; import { View, Text, Image, StyleSheet } from "react-native";