Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
83
rated 0 times [  85] [ 2]  / answers: 1 / hits: 24632  / 8 Years ago, tue, june 7, 2016, 12:00:00

I know how to read the json file just by importing it



import file from './config/data.json';
console.log(file);
.



But is there an easy way to write or edit on it.


More From » json

 Answers
17

If you absolutely want to read/write files you could use react-native-fs.



If you want to persist application specific settings I would recommend using AsyncStorage.


[#61879] Saturday, June 4, 2016, 8 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kelleyamiahk

Total Points: 216
Total Questions: 113
Total Answers: 119

Location: Serbia
Member since Tue, Jul 26, 2022
2 Years ago
;