fix actionSheet

This commit is contained in:
ammarahm-ed
2021-06-11 10:38:14 +05:00
parent ee3a8a1edc
commit 08f11b9a9b

View File

@@ -8,11 +8,7 @@ import { DDS } from '../../services/DeviceDetection';
import {editing} from '../../utils';
import {hexToRGBA} from '../../utils/ColorUtils';
import {sleep} from '../../utils/TimeUtils';
import {
EditorWebView,
textInput
} from '../../views/Editor/Functions';
import {EditorWebView, textInput} from '../../views/Editor/Functions';
import tiny from '../../views/Editor/tiny/tiny';
import {focusEditor} from '../../views/Editor/tiny/toolbar/constants';
import {Toast} from '../Toast';
@@ -44,7 +40,7 @@ const ActionSheetWrapper = ({
borderBottomLeftRadius: largeTablet ? 10 : 1,
marginBottom: largeTablet ? 50 : 0,
alignSelf: 'center',
paddingTop: gestureEnabled ? 10 : 10,
paddingTop: 10,
};
}, [colors.bg, gestureEnabled]);
@@ -71,8 +67,7 @@ const ActionSheetWrapper = ({
return (
<ActionSheet
ref={fwdRef}
hideUnderlay={true}
drawUnderStatusBar={false}
containerStyle={style}
gestureEnabled={gestureEnabled}
extraScroll={largeTablet ? 50 : 0}
@@ -97,7 +92,7 @@ const ActionSheetWrapper = ({
}
onClose={_onClose}>
{children}
<View style={{height:Platform.OS === "ios" ? insets.bottom/2 : 20}}/>
<View style={{height: Platform.OS === 'ios' ? insets.bottom / 2 : 20}} />
</ActionSheet>
);
};