Issue
How can I store local files such as JSON and then fetch the data from controller?
Solution
Since React Native 0.4.3 you can read your local JSON file like this:
const customData = require('./customData.json');
and then access customData like a normal JS object.
Answered By - peter
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.