itinance / itinance/react-native-fs

RNFS.downloadFile doesn't work on android and iOS

Open
#835 4 comments 5 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

react-native version: 0.60.5
react-native-fs version: 2.13.2

I'm trying to download a file when press a ToucableOpcity
the success message is showing but I can't see the file
example onPress function:

```javascript
import React from 'react'
import { TouchableOpacity } from 'react-native'
import RNFS from 'react-native-fs'

const ExampleButton = () => {
pressHandler = () => {
RNFS.downloadFile({
fromUrl: 'https://i.imgur.com/EyPJbmD.jpg',
toFile: `${RNFS.DocumentDirectoryPath}/test.jpg`
}).promise
}

return (

)

}

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.