Skip to content

Commit e49b967

Browse files
committed
📖 readString usage
1 parent 1583299 commit e49b967

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,22 @@ react-native-csv is available on yarn as well. It can be installed with the foll
2020
yarn add react-native-csv --save
2121
```
2222

23+
## 💡 Usage
24+
25+
### 🎀 readString
26+
27+
```javascript
28+
import { readString } from 'react-native-csv';
29+
30+
const str = `Column 1,Column 2,Column 3,Column 4
31+
1-1,1-2,1-3,1-4
32+
2-1,2-2,2-3,2-4
33+
3-1,3-2,3-3,3-4
34+
4,5,6,7`;
35+
36+
const results = readString(str);
37+
```
38+
2339
## Contributing
2440

2541
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

0 commit comments

Comments
 (0)