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

Render action options in a custom modal. #983

Closed
rabindrachhachan opened this issue Sep 29, 2018 · 1 comment
Closed

Render action options in a custom modal. #983

rabindrachhachan opened this issue Sep 29, 2018 · 1 comment

Comments

@rabindrachhachan
Copy link

rabindrachhachan commented Sep 29, 2018

In the current version, action options are rendered in actionSheet. The actionSheet accept only string/Text elements as a parameter to render. How can I render my own custom modal.( Main action buttons, sub actions button with text ). I tried to open my custom modal on action icon pressed as in example app. But modal is not coming up.

Steps to Reproduce / Code Snippet

  1. Render a customAction components.
  2. In example app , onActionPressed will open a actionSheet with two options. I want to open a custom modal instead of actionSheet . My option styles is different from what actionSheet expect.

In customAction.js

onActionPressed = ()=>{
this.setState({showModal: !this.state.showModal})
}

render(){
return(
{render action icon with onPress set to onActionPressed//TouchableOpacity}
{showModal&& // modal }
)
}

[FILL THIS OUT]

Expected Results

[FILL THIS OUT]

Additional Information

  • Nodejs version: 8..
  • React version: 16..
  • React Native version: 0.51
  • react-native-gifted-chat version: 0.4.3
  • Platform(s) (iOS, Android, or both?): Both
@Donhv
Copy link

Donhv commented Feb 24, 2019

any update for this?

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

2 participants