0

TypeError: _reactNativeFetchBlob2.default.writeFile is not a function

import RNFetchBlob from 'react-native-fetch-blob';


RNFetchBlob.writeFile(path, data, 'utf8')
                .then((success) => {
                    console.log(success);
                })
                .catch((err) => {
                    console.log(err);
                });
user5699596
  • 95
  • 1
  • 5

1 Answers1

1

I think you're missing fs... RNFetchBlob.fs.writeFile.

Matt Aft
  • 8,742
  • 3
  • 24
  • 37