react-native-popup-menu

Popup menu does not overlay other components in Android

偶尔善良 提交于 2019-12-24 21:36:42
问题 I am using react-native-popup-menu@0.10.0. It works fine on IOS but cannot overlay on another component on android. It is invisible on android. Please provide any solution . renderHeader() {<Header><MenuContext style={styles.container}> <View> <Menu> <MenuTrigger customStyles={triggerStyles} onPress={() => this.setState({ opened: true })}> <FaIcon name='ellipsis-h' size={21} color='#b1b9bc'/> </MenuTrigger> <MenuOptions> <MenuOption onSelect={() => this.edit()} disabled={this.state.disabled}>

How to close react native popup menu?

眉间皱痕 提交于 2019-12-11 06:20:08
问题 I'm using your react-native-popup-menu for logout button. when button clicked the authentication deleted and screen will go to login . but the menu still left. How to close this menu when screen switched? <Menu> <MenuTrigger> <Icon name='more-vert' color='#fff' /> </MenuTrigger> <MenuOptions> <MenuOption value={1}> <Text onPress={() => { this.props.onLogout() }}>logout</Text> </MenuOption> </MenuOptions> </Menu> Originally asked by bexoss on react-native-popup-menu GitHub. 回答1: All other

React Native Popup Menu Moving the Options Box

此生再无相见时 提交于 2019-12-01 04:48:19
问题 I have a React Native Popup Menu implemented as follows: import React, { Component } from 'react'; import { Text } from 'react-native'; import { Icon, Divider } from 'react-native-elements'; import { Menu, MenuTrigger, MenuOptions, MenuOption } from 'react-native-popup-menu'; import { connect } from 'react-redux'; import firebase from 'firebase'; import { STATUS_BAR_HEIGHT } from '../constants'; class PopUpMenu extends Component { render() { const { menuStyle, menuOptionsStyle,