React native _reactNativeFetchBlob2.default.writeFile不是函数
TypeError:_reactNativeFetchBlob2.default.writeFile不是函数React native _reactNativeFetchBlob2.default.writeFile不是函数,react-native,react-native-fetch-blob,React Native,React Native Fetch Blob,TypeError:_reactNativeFetchBlob2.default.writeFile不是函数 import RNFetchBlob from 'react-native-fetch-blob'; RNFetchBlob.writeFile(path, data, 'utf8') .then((success) => { console.log(success); })
import RNFetchBlob from 'react-native-fetch-blob';
RNFetchBlob.writeFile(path, data, 'utf8')
.then((success) => {
console.log(success);
})
.catch((err) => {
console.log(err);
});
我想你错过了fs。。。RNFetchBlob.fs.writeFile