@codeleap/mobile 3.3.1 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -22,7 +22,6 @@ import { Backdrop } from '../Backdrop'
|
|
|
22
22
|
import { useAnimatedVariantStyles, useBackButton } from '../../utils/hooks'
|
|
23
23
|
import { Text, TextProps } from '../Text'
|
|
24
24
|
import { Touchable } from '../Touchable'
|
|
25
|
-
import { GetKeyboardAwarePropsOptions } from '../../utils'
|
|
26
25
|
import { ActionIcon } from '../ActionIcon'
|
|
27
26
|
|
|
28
27
|
export * from './styles'
|
|
@@ -47,7 +46,7 @@ export type ModalProps = Omit<ViewProps, 'variants' | 'styles'> & {
|
|
|
47
46
|
header?: React.ReactElement
|
|
48
47
|
closeOnHardwareBackPress?: boolean
|
|
49
48
|
renderHeader?: (props: ModalHeaderProps) => React.ReactElement
|
|
50
|
-
keyboardAware?:
|
|
49
|
+
keyboardAware?: boolean
|
|
51
50
|
scrollProps?: PropsOf<typeof Scroll, 'ref'>
|
|
52
51
|
}
|
|
53
52
|
|
|
@@ -197,15 +196,9 @@ export const Modal = (modalProps:ModalProps) => {
|
|
|
197
196
|
style={scrollStyle}
|
|
198
197
|
contentContainerStyle={getStyles('scrollContent')}
|
|
199
198
|
showsVerticalScrollIndicator={false}
|
|
200
|
-
keyboardAware
|
|
201
|
-
adapt: 'maxHeight',
|
|
202
|
-
baseStyleProp: 'style',
|
|
203
|
-
animated: true,
|
|
204
|
-
enabled: visible,
|
|
205
|
-
// enableOnAndroid: true,
|
|
206
|
-
}}
|
|
199
|
+
keyboardAware
|
|
207
200
|
animated
|
|
208
|
-
|
|
201
|
+
|
|
209
202
|
{ ...scrollProps}
|
|
210
203
|
>
|
|
211
204
|
{dismissOnBackdrop &&
|