RNFetchBlob.ls got 1 arguments, expected 2 invoke
See original GitHub issueMAY BE A BUG
When I am trying to get all files from sccard directory, it throws an exception.
I am testing on android, samsung TAB A. Has anyone the problem like this.
thanks in advance 😃
code snipet:
RNFetchBlob.fs.ls(PATH_TO_DIRECTORY).then(async files => {
alert(files.length);
}).catch(error => {
alert(error);
});
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:22
Top Results From Across the Web
RNFetchBlob.mkdir got 1 arguments, expected 2
The answer to this question is completely dependant on how you call the library. Add your code. – nbokmans. Mar 7, 2019 at...
Read more >react-native-fetch-blob - npm
A function that triggers when there's data received/sent, first argument is the number of sent/received bytes, and second argument is expected ...
Read more >Typeerror is not a function react native - Caritas Castellaneta
(In 'interpolate(this. json This is a react-redux-firebase v2. ... to my . call(arguments, 1)); var sContent; sContent=''; sContent app.
Read more >解决react native巨坑之更新RN版本后出现的问题 - 简书
更新后遇到两个问题,废话不多说,直接上问题: ```RNFetchBlob.ls got 1 arguments, expected 2 invoke ``` 这种情况出现一...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@CurrieBen can you ask them to update their fetchblob version to 0.10.13? I tested this back in October and it seemed to be okay on 0.10.13
This is still an issue. Native library expects a callback (which is largely unused), which this library does not provide, thus causing this error. You can patch this yourself in node_modules by adding an empty callback function.
If anyone is using redux-persist-filesystem-storage, they need to pin their version to
1.2.0
(ie."redux-persist-filesystem-storage": "1.2.0"
(removing the^
in front of the version n umber), otherwise they’ll get this fork instead, which is actually broken.