updated inputSupportModal tappable overlap to adapt to modal height

This commit is contained in:
Nouman Tahir 2022-07-21 13:43:48 +05:00
parent db9f810cac
commit ba109a7479

View File

@ -1,4 +1,4 @@
import React, { Component } from 'react';
import React from 'react';
import { View as AnimatedView } from 'react-native-animatable'
import { Portal } from 'react-native-portalize';
import styles from '../children/inputSupportModal.styles';
@ -22,15 +22,15 @@ export const InputSupportModal = ({children, visible, onClose}: InputSupportModa
duration={300}
animation='fadeInUp'>
<>
<View style={styles.container} onTouchEnd={onClose} />
<View style={styles.container} onTouchEnd={onClose} />
{
Platform.select({
ios: (
<KeyboardAvoidingView style={styles.container} behavior="padding">
<KeyboardAvoidingView behavior="padding">
{children}
</KeyboardAvoidingView>
),
android: <View style={styles.container}>{children}</View>,
android: <View>{children}</View>,
})
}