File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,41 @@ readRemoteFile(
5151);
5252```
5353
54+ ### 🎀 jsonToCSV
55+
56+ ``` javascript
57+ import { jsonToCSV } from ' react-native-csv'
58+
59+ const jsonData = ` [
60+ {
61+ "Column 1": "1-1",
62+ "Column 2": "1-2",
63+ "Column 3": "1-3",
64+ "Column 4": "1-4"
65+ },
66+ {
67+ "Column 1": "2-1",
68+ "Column 2": "2-2",
69+ "Column 3": "2-3",
70+ "Column 4": "2-4"
71+ },
72+ {
73+ "Column 1": "3-1",
74+ "Column 2": "3-2",
75+ "Column 3": "3-3",
76+ "Column 4": "3-4"
77+ },
78+ {
79+ "Column 1": 4,
80+ "Column 2": 5,
81+ "Column 3": 6,
82+ "Column 4": 7
83+ }
84+ ]` ;
85+
86+ const results = jsonToCSV (jsonData);
87+ ```
88+
5489## Contributing
5590
5691See the [ contributing guide] ( CONTRIBUTING.md ) to learn how to contribute to the repository and the development workflow.
You can’t perform that action at this time.
0 commit comments