-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
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
Can't receive the shared files after ReceiveSharingIntent.clearReceivedFiles( ) is called on unmount. #149
Comments
The same behavior happens in my app. Please let me know the solution. |
Same issue here. |
i removed clearReceivedFiles, dont know why, so bad lib |
im still facing the same issue after calling the clearReceivdFiles method i dont get new data until i reload the app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
useEffect(() => {
ReceiveSharingIntent.getReceivedFiles(
(data: any) => {
console.log("received data", data);
},
(err: any) => {
console.log("err", err);
},
ShareMedia,
);
return () => {
ReceiveSharingIntent.clearReceivedFiles();
};
}, []);
Initially, ReceiveSharingIntent.getReceivedFiles() returns the shared file. But after the clearReceivedFiles() function is called on unmount, ReceiveSharingIntent.getReceivedFiles() does not return any file on sharing. However, if we restart the app, it works just fine.
The text was updated successfully, but these errors were encountered: