File tree 1 file changed +7
-10
lines changed
1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 1
- <!-- {% raw %} -->
2
1
> 模板版本:v0.2.2
3
2
4
3
<p align =" center " >
@@ -132,8 +131,9 @@ ohpm install
132
131
打开 ` entry/src/main/ets/RNPackagesFactory.ts ` ,添加:
133
132
134
133
``` 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";
137
137
138
138
export function createRNPackages(ctx: RNPackageContext): RNPackage[] {
139
139
return [
@@ -168,9 +168,7 @@ ohpm install
168
168
169
169
### 权限要求
170
170
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文件中
174
172
175
173
```
176
174
"requestPermissions": [
@@ -182,9 +180,9 @@ In your `module.json5`
182
180
183
181
## API
184
182
185
- > [ !tip ] "Platform"列表示该属性在原三方库上支持的平台。
183
+ > [ !TIP ] "Platform"列表示该属性在原三方库上支持的平台。
186
184
187
- > [ !tip ] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
185
+ > [ !TIP ] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
188
186
189
187
| Name | Description | Type | Required | Platform | HarmonyOS Support |
190
188
| ---- | ----------- | ---- | -------- | -------- | ------------------ |
@@ -197,5 +195,4 @@ In your `module.json5`
197
195
198
196
## 开源协议
199
197
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 ) ,请自由地享受和参与开源。
You can’t perform that action at this time.
0 commit comments