I'm creating a React-native app, which has a question-answer system, and this menu is intended for confirming a chosen answer.
How can I open react-native-popup-menu without having a separate Menutrigger?
<Menu renderer={renderers.SlideInMenu}>
<MenuTrigger>
<Text>
{answers}
</Text>
</MenuTrigger>
<MenuOptions>
<MenuOption>
<View>
<h2> {title}</h2>
<h3> {text}</h3>
</View>
</MenuOption>
<MenuOption>
<View style={styles.btnContainer}>
<Button title= "CANCEL" onPress={onCancel}/>
<Button title= "CONTINUE" onPress={onConfirm}/>
</View>
</MenuOption>
</MenuOptions>
</Menu>
);
In this code the "{answers} trigger activates when I push a button, and the {answers} then become the button that triggers the menu which then triggers the title and the body to slide in. How can I trigger the title and the body without getting the extra step in?