Skip to content

Commit 5a274dc

Browse files
committed
docs: 修改文档
1 parent 64b5b9c commit 5a274dc

File tree

1 file changed

+2
-4
lines changed
  • packages/react-native-password/src

1 file changed

+2
-4
lines changed

packages/react-native-password/src/index.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ group:
1212

1313
使用本组件需要单独安装:**yarn add @td-design/react-native-password**
1414

15-
推荐使用[Passcode](feedback/passcode)组件代替
16-
1715
## 效果演示
1816

1917
### 1. 基本
@@ -60,7 +58,7 @@ group:
6058
<Button
6159
title="modal"
6260
onPress={() => {
63-
Password.modal({ title: '仿支付宝支付', onDone: onDone });
61+
showPasswordModal({ title: '仿支付宝支付', onDone: onDone });
6462
}}
6563
/>
6664
```
@@ -83,7 +81,7 @@ group:
8381
<Button
8482
title="modal"
8583
onPress={() => {
86-
Password.modal({ title: '仿支付宝支付', onDone: onDone, showCursor: true });
84+
showPasswordModal({ title: '仿支付宝支付', onDone: onDone, showCursor: true });
8785
}}
8886
/>
8987
```

0 commit comments

Comments
 (0)