React-native packager configuration - How to include .zip file in bundle?
问题 My problem: I have a zip file that contains a firmware update for my company's device I want to be able to access it using react-native-fs with the code below . export function readAssetFile(name) { if(Platform.OS === 'ios') { return RNFS.readFile(`${RNFS.MainBundlePath}/assets/data/${name}`); } else { return RNFS.readFileAssets(`raw/${name}`, 'base64'); } } My project structure looks like: ProjectDir android data image1.png image2.png firmwarefile.zip ios The android branch works, because I