React Native Popup Menu Moving the Options Box

后端 未结 1 1856
南方客
南方客 2021-01-14 00:41

I have a React Native Popup Menu implemented as follows:

import React, { Component } from \'react\';
import { Text } from \'react-native\';
import { Icon, Di         


        
相关标签:
1条回答
  • 2021-01-14 01:46

    You can achieve that by passing optionsContainerStyle props to MenuOptions component, not style props.

    Something like this.

    <MenuOptions optionsContainerStyle={{ marginTop: 40 }}>
    ...
    </MenuOptions>
    
    0 讨论(0)
提交回复
热议问题