Skip to content

Commit c55cb30

Browse files
ChenlingasMxhy
authored andcommitted
doc:SwipeAction文档优化
1 parent f9db0e9 commit c55cb30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/SwipeAction/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ SwipeAction 滑动操作组件。
55
### 基础示例
66

77
```jsx
8-
import React from 'react';
8+
import React,{ useRef } from 'react';
99
import {SwipeAction} from '@uiw/react-native';
1010
import { View,Text } from 'react-native'
1111

1212
function Demo() {
13+
const ref = useRef()
1314
const right = [
1415
{
1516
text: '查看',

0 commit comments

Comments
 (0)