having an issue with filepond i am using the #processfilestart event listener to set an additional setMetadata to pass into the server. but I noticed that when I use setMetadata I am having an upload canceled file and when I comment the setMetadata the weird behavior is not appearing. I don't know if this is a bug or I am missing something. please help.
using version:
"filepond": "^4.30.4"
"vue": "^2.6.12",
This is screenshot
Related
Is there a way to clear cache in webview for both ios and android?
I tried using #react-native-community_cookies, it works for ios, but for android Im getting this error when trying to run: A problem occurred evaluating project ':#react-native-community_cookies'. > Plugin with id 'maven' not found.
Maybe any of you have suggestions how to fix this or know some other methods?
Thanks
You can use this plugin https://www.npmjs.com/package/#react-native-community/cookies for clear cache and write below function
import CookieManager from '#react-native-community/cookies';
CookieManager.clearAll(true)
The true param means that it will clear cookies for the webkit webview (which is what this library uses)
Check out this library it does the job done.
https://github.com/react-native-cookies/cookies
import CookieManager from '#react-native-cookies/cookies';
CookieManager.clearAll(true);
I'm trying to run my app on expo-go but when I run the app it loads but I get an error.
"There was a problem running app name", then it asks me to try again.
below this there's another error message. "no launchable updates found in database."
Does anyone have a fix for this ?
Locate your app.json file look for "runtimeVersion", if you have a runtimeVersion, pass this "exposdk:44.0.0" as the runtimeVersion value.
it should look like so:
"runtimeVersion": "exposdk:44.0.0",
Note: using expo sdk 44.0.0 at the time of this publish.
Edit: When building your app with EAS or "expo publish --release-channel" this will display an error that the runtimeVersion value is not valid. But because expo caches the runtimeValue you can simply change this back to "2.718" or whichever value you provided, and this should fix the bug at build time.
I have react native project with below version details and implement the GetSream Chat with below version.
"react-native": "0.62.2",
"stream-chat-react-native": "^1.3.3"
Now when i create chatClient.setUser it work very fine if my debugger is on in app. Here is the link for official doc to initiate the user https://getstream.io/chat/docs/init_and_users/?language=js
But now suppose i off the debugger then its giving me the below error and it wont open any channel.
[Error: crypto.getRandomValues() not supported. See
https://github.com/uuidjs/uuid#getrandomvalues-not-supported]
If need any more information please let me know.
Thank You.
There are some changes for dependencies:
You will need to install LinusU/react-native-get-random-values and add this line import 'react-native-get-random-values'; to your index.js
See the docs for more details: https://github.com/GetStream/stream-chat-react-native/wiki/Upgrade-helper#dependency-changes
I want to display a pdf in my react-native app. I used documentation from https://www.npmjs.com/package/react-native-pdf. I installed rn-fetch-blob and react-native-pdf. i have linked react-native-pdf .
but when i ran command "react-native link rn-fetch-blob" it didn't get linked.
and i got the following message in command prompt:
rn-fetch-blob will not automatically add Android permissions after 0.9.4
please run the following command if you want to add default permissions :
RNFB_ANDROID_PERMISSIONS=true react-native link
I tried this command and i got:
"'RNFB_ANDROID_PERMISSIONS' is not recognized as an internal or external command,
operable program or batch file."
I am using this version: react-native-cli: 2.0.1
react-native: 0.59.8
I also tried to set it manually with the reference https://github.com/wkh237/react-native-fetch-blob/wiki/Manually-Link-Package
I was to set it in 3 files according to the last reference i provided -
I used first: "node_modules/rn-fetch-blob/android/build.gradle" (which is "android/app/build.gradle" in documentation )
I used second: "node_modules/rn-fetch-blob/android/src/main/java/com/RNFetchBlob/RNFetchBlob.java" (which is "MainApplication.java" in documentation )
third file was "android/settings.gradle" which i didn't find in "node_modules/rn-fetch-blob/android/"
so i bacame unable to set it manually.
May be I am using wrong file paths to set it manually. If any one have any idea about it or any suggestions for me to solve it in a better way. please help me out.
Or if any other way to solve "displaying a pdf in react-native" please provide me that also.
linking problem is solved after setting it manually and than by using command set RNFB_ANDROID_PERMISSIONS=true in command prompt.
But now still getting an error after using in code import Pdf from 'react-native-pdf'; . the error is shown below.
anyone having idea about it. or any other way to display a pdf in react-native, kindly let me know.
If you run this command "rn-fetch-blob": "^0.10.13",install this version is worked for me,if you install another one your app was crashed/stoped.
11:01:29: Failed building JavaScript bundle
11:01:29: Unable to resolve ./app/img/grangologo.png" from ".//App.js: could not resolve/home/gokul/React/Grango/app/img/grangologo.png' as a file nor as a folder","name":"UnableToResolveError","type":"UnableToResolveError","errors":[{}]},"type":"bundling_error"}"
you'r path to the image is wrong, try to use some console.log's to check yourself if the image was imported.
(p.s you could avoid all of it by using proper editor)