add animation to base dialog

This commit is contained in:
ammarahm-ed
2021-11-11 13:08:39 +05:00
parent 352356724d
commit 0b64bbcf74
2 changed files with 8 additions and 10 deletions

View File

@@ -51,8 +51,6 @@ const BaseDialog = ({
<KeyboardAvoidingView <KeyboardAvoidingView
enabled={!floating && Platform.OS === 'ios'} enabled={!floating && Platform.OS === 'ios'}
behavior="padding"> behavior="padding">
<BouncingView <BouncingView
duration={400} duration={400}
style={[ style={[
@@ -88,7 +86,7 @@ const styles = StyleSheet.create({
overlayButton: { overlayButton: {
width: '100%', width: '100%',
height: '100%', height: '100%',
position: 'absolute', position: 'absolute'
} }
}); });

View File

@@ -13,7 +13,7 @@ const DialogContainer = ({width, height, ...restProps}) => {
{...restProps} {...restProps}
style={{ style={{
...getElevation(5), ...getElevation(5),
width: width || DDS.isTab ? 400 : '85%', width: width || DDS.isTab ? 500 : '85%',
maxHeight: height || 450, maxHeight: height || 450,
borderRadius: 10, borderRadius: 10,
backgroundColor: colors.bg, backgroundColor: colors.bg,