Post Menu initial position to show one option cut off (#2453)
This commit is contained in:
parent
170243fdd7
commit
c1cc5f285d
1 changed files with 3 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ import MaterialIcon from 'react-native-vector-icons/MaterialIcons';
|
|||
|
||||
import SlideUpPanel from 'app/components/slide_up_panel';
|
||||
import {BOTTOM_MARGIN} from 'app/components/slide_up_panel/slide_up_panel';
|
||||
import DeviceTypes from 'app/constants/device';
|
||||
|
||||
import PostOption from './post_option';
|
||||
|
||||
|
|
@ -387,6 +388,7 @@ export default class PostOptions extends PureComponent {
|
|||
const {deviceHeight} = this.props;
|
||||
const options = this.getPostOptions();
|
||||
const marginFromTop = deviceHeight - BOTTOM_MARGIN - ((options.length + 1) * OPTION_HEIGHT);
|
||||
const initialPosition = DeviceTypes.IS_IPHONE_X ? 280 : 305;
|
||||
|
||||
return (
|
||||
<View style={style.container}>
|
||||
|
|
@ -395,7 +397,7 @@ export default class PostOptions extends PureComponent {
|
|||
ref={this.refSlideUpPanel}
|
||||
marginFromTop={marginFromTop}
|
||||
onRequestClose={this.close}
|
||||
initialPosition={290}
|
||||
initialPosition={initialPosition}
|
||||
>
|
||||
{options}
|
||||
</SlideUpPanel>
|
||||
|
|
|
|||
Loading…
Reference in a new issue