1
- import PropTypes from 'prop-types' ;
2
1
import React from 'react' ;
3
2
import { StyleSheet , Dimensions } from 'react-native' ;
4
3
import KeyboardTrackingView from './KeyboardTrackingView' ;
5
4
6
- /**
7
- * @description : A UI component that enables “keyboard tracking" for this view and it's sub-views.
8
- * Would typically be used when you have a TextField or TextInput inside this view.
9
- *
10
- * @example : https://github.com/wix-private/wix-react-native-ui-lib/blob/master/example/screens/nativeComponentScreens/KeyboardTrackingViewScreen.js
11
- * @notes : This view is useful only for iOS.
12
- */
13
5
const KeyboardAwareInsetsView = props => (
14
6
< KeyboardTrackingView { ...props } pointerEvents = { 'none' } style = { styles . insetsView } scrollToFocusedInput />
15
7
) ;
@@ -26,19 +18,4 @@ const styles = StyleSheet.create({
26
18
}
27
19
} ) ;
28
20
29
- KeyboardTrackingView . propTypes = {
30
- /**
31
- * Enables tracking of the keyboard when it's dismissed interactively (false by default).
32
- * Why? When using an external keyboard (BT),
33
- * you still get the keyboard events and the view just hovers when you focus the input.
34
- * Also, if you're not using interactive style of dismissing the keyboard
35
- * (or if you don't have an input inside this view) it doesn't make sense to track it anyway.
36
- * (This is caused because of the usage of inputAccessory to be able to track the
37
- * keyboard interactive change and it introduces this bug)
38
- */
39
- trackInteractive : PropTypes . bool
40
- } ;
41
-
42
- KeyboardTrackingView . displayName = 'KeyboardTrackingView' ;
43
-
44
21
export default KeyboardAwareInsetsView ;
0 commit comments