user5699596
user5699596

Reputation: 95

_reactNativeFetchBlob2.default.writeFile is not a function

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);
                });

Upvotes: 0

Views: 488

Answers (1)

Matt Aft
Matt Aft

Reputation: 8936

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

Upvotes: 1

Related Questions