React native 触摸输入图标时如何显示弹出菜单
如何从本例中调用popupmenu假定模块中有UIManagerModule.showPopupMenu, 然后您可以通过UIManager类调用这个类 如图所示,通过查找图标的参考节点打开 但是它只在android上工作,并且可以遵循假设您的模块中有UIManagerModule.showPopupMenu, 然后您可以通过UIManager类调用这个类 如图所示,通过查找图标的参考节点打开 不过,它只能在android上运行,并且可以遵循React native 触摸输入图标时如何显示弹出菜单,react-native,React Native,如何从本例中调用popupmenu假定模块中有UIManagerModule.showPopupMenu, 然后您可以通过UIManager类调用这个类 如图所示,通过查找图标的参考节点打开 但是它只在android上工作,并且可以遵循假设您的模块中有UIManagerModule.showPopupMenu, 然后您可以通过UIManager类调用这个类 如图所示,通过查找图标的参考节点打开 不过,它只能在android上运行,并且可以遵循 import { UIManager, findNo
import { UIManager, findNodeHandle } from 'react-native'
UIManager.showPopupMenu(
findNodeHandle(this.state.icon),
this.props.actions,
this.onError,
this.props.onPress
)