json file url import in react js code example Example: import json file in react native const customData = require('./customData.json');