Owen
Results
2
comments of
Owen
I had solved this problem with use rn-fetch-blob. I used react-native-fs for ios and rn-fetch-blob for android to get the file's absolute path. ` import RNFetchBlob from 'rn-fetch-blob'; const RNFS...
我更改为获取npm的参数了,npm run dev --[envName] 获取: const argv = JSON.parse(process.env.npm_config_argv).original || process.argv process.env.HOST_ENV = argv[2].replace(/[^a-z]+/ig,"");