Skip to content

❗ React Native Picker Not Working Inside GiftedChat RenderActions Modal #825

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

Closed
AsifNoushad03 opened this issue May 8, 2025 · 1 comment

Comments

@AsifNoushad03
Copy link

AsifNoushad03 commented May 8, 2025

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.

⚠️ This issue does not occur on Android 13 or 14.

<GiftedChat
renderActions={(props) => (
<Actions
{...props}
onPressActionButton={() => setVisible(true)} // opens modal
/>
)}
/>

pickFile()}> Choose File

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

Node:
    version: 22.14.0
  npm:
    version: 10.9.2
 react-native:
    installed: 0.79.1
 "@react-native-documents/picker": "^10.1.2",
Copy link
Contributor

github-actions bot commented May 8, 2025

👋 @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!.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 8, 2025
@github-actions github-actions bot locked as off-topic and limited conversation to collaborators May 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants