Skip to content

Commit d53747d

Browse files
committed
update: readme
1 parent c508fe7 commit d53747d

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

README.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,30 @@ npm install @pnstack/react-react-native-table
1111
## Usage
1212

1313
```js
14-
import { multiply } from '@pnstack/react-react-native-table';
15-
16-
// ...
17-
18-
const result = await multiply(3, 7);
14+
<Table
15+
columns={[
16+
{
17+
title: 'id',
18+
key: 'id',
19+
dataIndex: 'id',
20+
},
21+
{
22+
title: 'Name',
23+
key: 'name',
24+
dataIndex: 'name',
25+
},
26+
]}
27+
dataSource={[
28+
{
29+
id: 1,
30+
name: 'name 1',
31+
},
32+
{
33+
id: 2,
34+
name: 'name 2',
35+
},
36+
]}
37+
/>
1938
```
2039

2140
## Contributing

0 commit comments

Comments
 (0)