Skip to content
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

Slack example long press on message throws context.actionsheet is not a function error. #2367

Open
mdkwock opened this issue Mar 29, 2023 · 0 comments

Comments

@mdkwock
Copy link
Contributor

mdkwock commented Mar 29, 2023

Issue Description

Slack example long press on message throws context.actionsheet is not a function error.
The issue is that when you overwrite the Bubble component you can no longer access the GiftedChatContext.
This causes the onLongPress action to be incorrect.
This is also an issue because it means that other people who decide to take greater control over the more complex rendering components will follow a bad pattern and lose potential upstream features.

Steps to Reproduce / Code Snippets

Copy the slack example into a new repository
Long press a chat message
Error appears

Screenshot 2023-03-29 at 11-10-28 Chat Tab

Expected Results

Expect the long press menu to appear

Additional Information

  • Nodejs version: 18.12.1
  • React version: 18.2.0
  • React Native version: 0.71.4
  • react-native-gifted-chat version: 2.0.1
  • Platform(s) (iOS, Android, or both?): both
  • TypeScript version: 4.9.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant