@@ -9,15 +9,15 @@ import { ScrollViewProperties, ListViewProperties } from 'react-native'
9
9
interface KeyboardAwareProps {
10
10
/**
11
11
* Adds an extra offset that represents the TabBarIOS height.
12
- *
12
+ *
13
13
* @type {boolean }
14
14
* @memberof KeyboardAwareProps
15
15
*/
16
16
viewIsInsideTabBar ?: boolean
17
17
18
18
/**
19
19
* Coordinates that will be used to reset the scroll when the keyboard hides.
20
- *
20
+ *
21
21
* @type {{
22
22
* x: number,
23
23
* y: number
@@ -31,17 +31,17 @@ interface KeyboardAwareProps {
31
31
32
32
/**
33
33
* Lets the user enable or disable automatic resetScrollToCoords
34
- *
34
+ *
35
35
* @type {boolean }
36
36
* @memberof KeyboardAwareProps
37
37
*/
38
38
enableResetScrollToCoords ?: boolean
39
39
40
40
/**
41
41
* When focus in TextInput will scroll the position
42
- *
42
+ *
43
43
* Default is true
44
- *
44
+ *
45
45
* @type {boolean }
46
46
* @memberof KeyboardAwareProps
47
47
*/
@@ -57,11 +57,11 @@ interface KeyboardAwareProps {
57
57
extraHeight ?: number
58
58
59
59
/**
60
- * Adds an extra offset to the keyboard.
60
+ * Adds an extra offset to the keyboard.
61
61
* Useful if you want to stick elements above the keyboard.
62
- *
62
+ *
63
63
* Default is 0
64
- *
64
+ *
65
65
* @type {number }
66
66
* @memberof KeyboardAwareProps
67
67
*/
@@ -71,6 +71,10 @@ interface KeyboardAwareProps {
71
71
interface KeyboardAwareListViewProps extends KeyboardAwareProps , ListViewProperties { }
72
72
interface KeyboardAwareScrollViewProps extends KeyboardAwareProps , ScrollViewProperties { }
73
73
74
+ interface KeyboardAwareState {
75
+ keyboardSpace : number
76
+ }
77
+
74
78
export class KeyboardAwareMixin { }
75
- export class KeyboardAwareListView extends React . Component < KeyboardAwareListViewProps , any > { }
76
- export class KeyboardAwareScrollView extends React . Component < KeyboardAwareScrollViewProps , any > { }
79
+ export class KeyboardAwareListView extends React . Component < KeyboardAwareListViewProps , KeyboardAwareState > { }
80
+ export class KeyboardAwareScrollView extends React . Component < KeyboardAwareScrollViewProps , KeyboardAwareState > { }
0 commit comments