Reputation: 11404
I am reading json files into a react-native app using require. For example:
myfiles.json:
const myfiles = {
one: require('./files/one.json'),
two: require('./files/two.json'),
three: require('./files/three.json')
}
export myfiles
However, I have updated my JSON files and the updates are not showing in the IOS simulator. I have tried closing the simulator and running react-native run-ios
but it is still showing the old data from the JSON files.
Are these being cached somewhere? If so, where? What do I have to do to see the updates?
Upvotes: 0
Views: 337
Reputation: 900
I suggest these ways to reset emulator and clean iOS build if you use xcode:
** After all uninstall your app on emulator and reinstall.
Upvotes: 1