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
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
Render a customAction components.
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 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
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
The text was updated successfully, but these errors were encountered: