joltup / rn-fetch-blob

A project committed to making file access and data transfer easier, efficient for React Native developers.
MIT License
2.81k stars 772 forks source link

downloading/writing file from base64 not giving notification with react-native-fetch-blob #655

Open QaimSiddiqui opened 3 years ago

QaimSiddiqui commented 3 years ago

I am writing file to phone with *react-native-fetch-blob* writeFile*

 RNFetchBlob.fs
      .writeFile(path, base64String, 'base64')
      .then((data: any) => {
        ToastAndroid.show(
          'File Downloaded to your Phone',
          ToastAndroid.SHORT,
        );

        this.setState({downloading: false});
      })
      .catch(err => {
        console.log(err);
        this.setState({downloading: false});
      });

but it didn't give notification is there any way to get notification and open that written file from notifcation