save a local json data in a text file react code example Example: import json file in react native const customData = require('./customData.json');