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

onPressActionButton is not anymore passed to renderActions or Actions component #2560

Open
Ksm125 opened this issue Nov 30, 2024 · 0 comments · May be fixed by #2561
Open

onPressActionButton is not anymore passed to renderActions or Actions component #2560

Ksm125 opened this issue Nov 30, 2024 · 0 comments · May be fixed by #2561

Comments

@Ksm125
Copy link

Ksm125 commented Nov 30, 2024

Issue Description

the props onPressActionButton is not passed to the callback renderActions and the Actions component, makes it impossible to have action on this now.

Steps to Reproduce / Code Snippets

const handlePressAction = () => console.log('action pressed')

<GiftChat 
messages={[]}
onPressActionButton={handlePressAction}
/>

Expected Results

it should log the message in console, but nothing happens

Additional Information

  • Nodejs version: 20.11.1
  • React version: 18.2.0
  • React Native version: 0.72.17
  • react-native-gifted-chat version: 2.6.4
  • Platform(s) (iOS, Android, or both?): both
  • TypeScript version: 5.2.2
@Ksm125 Ksm125 linked a pull request Nov 30, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant