File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,9 @@ A ScrollView component that handles keyboard appearance and automatically scroll
9
9
</p >
10
10
11
11
## Supported versions
12
- Use ` react-native>=0.25.0 ` for ` v0.0.7 ` & up and ` v0.0.6 ` for older RN versions.
12
+ ` v0.1.2 ` requires ` RN>=0.27.2 `
13
+ ` v0.0.7 ` requires ` react-native>=0.25.0 `
14
+ use ` v0.0.6 ` for older RN versions.
13
15
14
16
## Installation
15
17
Installation can be done through `` npm `` :
Original file line number Diff line number Diff line change 1
1
/* @flow */
2
2
3
3
import { PropTypes } from 'react'
4
- import ReactNative , { TextInput , DeviceEventEmitter } from 'react-native'
4
+ import ReactNative , { TextInput , Keyboard } from 'react-native'
5
5
import TimerMixin from 'react-timer-mixin'
6
6
7
7
const _KAM_DEFAULT_TAB_BAR_HEIGHT = 49
@@ -73,8 +73,8 @@ const KeyboardAwareMixin = {
73
73
74
74
componentDidMount : function ( ) {
75
75
// Keyboard events
76
- this . keyboardWillShowEvent = DeviceEventEmitter . addListener ( 'keyboardWillShow' , this . updateKeyboardSpace )
77
- this . keyboardWillHideEvent = DeviceEventEmitter . addListener ( 'keyboardWillHide' , this . resetKeyboardSpace )
76
+ this . keyboardWillShowEvent = Keyboard . addListener ( 'keyboardWillShow' , this . updateKeyboardSpace )
77
+ this . keyboardWillHideEvent = Keyboard . addListener ( 'keyboardWillHide' , this . resetKeyboardSpace )
78
78
} ,
79
79
80
80
componentWillUnmount : function ( ) {
You can’t perform that action at this time.
0 commit comments