Skip to content

Commit ec4ed18

Browse files
Qy742698林志鹏
authored and
林志鹏
committed
!1423 docs: 修改react-native-shake的指导文档
* docs: [Issues: #IAMPKR] 修改react-native-shake的指导文档
1 parent cf1f555 commit ec4ed18

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

zh-cn/react-native-shake.md

+7-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<!-- {% raw %} -->
21
> 模板版本:v0.2.2
32
43
<p align="center">
@@ -132,8 +131,9 @@ ohpm install
132131
打开 `entry/src/main/ets/RNPackagesFactory.ts`,添加:
133132

134133
```diff
135-
...
136-
+ import { ShakePackage } from "@react-native-oh-tpl/rnoh-shake-package/ts";
134+
...
135+
136+
+ import { ShakePackage } from "@react-native-oh-tpl/react-native-shake/ts";
137137

138138
export function createRNPackages(ctx: RNPackageContext): RNPackage[] {
139139
return [
@@ -168,9 +168,7 @@ ohpm install
168168

169169
### 权限要求
170170

171-
Add the following permissions to their respective files:
172-
173-
In your `module.json5`
171+
此库接口需要normal权限:ohos.permission.ACCESS_BLUETOOTH,权限需配置在entry/src/main目录下module.json5文件中
174172

175173
```
176174
"requestPermissions": [
@@ -182,9 +180,9 @@ In your `module.json5`
182180

183181
## API
184182

185-
> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
183+
> [!TIP] "Platform"列表示该属性在原三方库上支持的平台。
186184
187-
> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
185+
> [!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
188186
189187
| Name | Description | Type | Required | Platform | HarmonyOS Support |
190188
| ---- | ----------- | ---- | -------- | -------- | ------------------ |
@@ -197,5 +195,4 @@ In your `module.json5`
197195

198196
## 开源协议
199197

200-
本项目基于 [The MIT License (MIT)](https://github.com/Doko-Demo-Doa/react-native-shake/blob/main/LICENSE) ,请自由地享受和参与开源。
201-
<!-- {% endraw %} -->
198+
本项目基于 [The MIT License (MIT)](https://github.com/Doko-Demo-Doa/react-native-shake/blob/main/LICENSE) ,请自由地享受和参与开源。

0 commit comments

Comments
 (0)