@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeleap/mobile",
3
- "version": "3.3.1",
3
+ "version": "3.4.0",
4
4
  "main": "src/index.ts",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -23,11 +23,6 @@ export const Drawer:React.FC<DrawerProps> = (props) => {
23
23
  {...modalProps}
24
24
  scrollProps={{
25
25
  ...scrollProps,
26
- keyboardAware: {
27
-
28
- enabled: false,
29
- ...scrollProps?.keyboardAware,
30
- },
31
26
  }}
32
27
  />
33
28
  }
@@ -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?: GetKeyboardAwarePropsOptions
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
- // ref={scrollRef}
201
+
209
202
  { ...scrollProps}
210
203
  >
211
204
  {dismissOnBackdrop &&
@@ -23,7 +23,7 @@ export type ViewProps ={
23
23
  ref?: AnyRef<ViewRefType>
24
24
  component?: any
25
25
  animated?: boolean
26
- keyboardAware?: GetKeyboardAwarePropsOptions
26
+ keyboardAware?: boolean
27
27
  transition?: Partial<TransitionConfig>
28
28
  }
29
29
  & NativeViewProps