We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resp.text()
Property 'base64' doesn't not exits
react-native-blob-util: ^0.14.1
example code:
export async function test() { try { const resp = await RNFetchBlob.fetch('GET', 'a-url') const text = await resp.text() // the line caused exception } catch(e) { console.log(e.message) // Property 'base64' doesn't not exits } }
If i goto /node_modules/react-native-blob-util/class/ReactNativeBlobUtilBlobResponse.js and add code below:
/node_modules/react-native-blob-util/class/ReactNativeBlobUtilBlobResponse.js
import base64 from 'base-64'
resp.text() worked.
So, is any wrong with text() implement ?
text()
note: if it switch to 'rn-fetch-blob' and try the same example code, text() work fine.
The text was updated successfully, but these errors were encountered:
I have the same problem, it looks like the dependency is missing.
Sorry, something went wrong.
Thanks, I merged your PR @jaylensoeur
Update:
d52ba2b
* Transform for read and write methods (e.g. for encryption) fixes #92 fixes #126 fixes #131 fixes #120
No branches or pull requests
react-native-blob-util: ^0.14.1
example code:
If i goto
/node_modules/react-native-blob-util/class/ReactNativeBlobUtilBlobResponse.js
and add code below:resp.text()
worked.So, is any wrong with
text()
implement ?note: if it switch to 'rn-fetch-blob' and try the same example code,
text()
work fine.The text was updated successfully, but these errors were encountered: