You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using GiftedChat's renderActions with a custom modal (e.g., bottom sheet), calling a file/image picker directly from the modal causes the app to crash on Android 12.
File error: Error: Warning: previous promise did not settle and you attempted to overwrite it. You've called "pick" while "pick" was already in progress and has not completed yet.
👋 @AsifNoushad03, sorry you're having an issue. As the issue template explains, it's required that you provide a runnable example that reproduces your issue (see the issue template).
The reason is that a bug report is not actionable without a reproducer. Try to minimize the superfluous code and focus only on reproducing the bug.
Please create a new issue with this and the maintainer will do his best to review it!.
When using GiftedChat's renderActions with a custom modal (e.g., bottom sheet), calling a file/image picker directly from the modal causes the app to crash on Android 12.
<GiftedChat
pickFile()}> Choose FilerenderActions={(props) => (
<Actions
{...props}
onPressActionButton={() => setVisible(true)} // opens modal
/>
)}
/>
const pickFile = async () => {
pick?.({
type: ['application/pdf'],
})
.then(results => {
// handle result
})
.catch(err => {
console.log('File error:', err);
});
};
File error: Error: Warning: previous promise did not settle and you attempted to overwrite it. You've called "pick" while "pick" was already in progress and has not completed yet.
Your computer environment
The text was updated successfully, but these errors were encountered: