Skip to content

Commit 5fb7f17

Browse files
authored
Merge branch 'master' into flow-fixes
2 parents 2ae022c + 79e5fda commit 5fb7f17

File tree

4 files changed

+1095
-3
lines changed

4 files changed

+1095
-3
lines changed

lib/KeyboardAwareListView.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
/* @flow */
22

33
import React from 'react'
4+
import createReactClass from 'create-react-class'
45
import { ListView } from 'react-native'
56
import PropTypes from 'prop-types'
67
import KeyboardAwareMixin from './KeyboardAwareMixin'
78

8-
const KeyboardAwareListView = React.createClass({
9+
const KeyboardAwareListView = createReactClass({
910
propTypes: {
10-
viewIsInsideTabBar: React.PropTypes.bool,
11+
viewIsInsideTabBar: PropTypes.bool,
1112
resetScrollToCoords: PropTypes.shape({
1213
x: PropTypes.number.isRequired,
1314
y: PropTypes.number.isRequired,

lib/KeyboardAwareScrollView.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
/* @flow */
22

33
import React from 'react'
4+
import createReactClass from 'create-react-class'
45
import { ScrollView } from 'react-native'
56
import PropTypes from 'prop-types'
67
import KeyboardAwareMixin from './KeyboardAwareMixin'
78

8-
const KeyboardAwareScrollView = React.createClass({
9+
const KeyboardAwareScrollView = createReactClass({
910
propTypes: {
1011
...ScrollView.propTypes,
1112
viewIsInsideTabBar: PropTypes.bool,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
},
3737
"homepage": "https://github.com/APSL/react-native-keyboard-aware-scroll-view#readme",
3838
"dependencies": {
39+
"create-react-class": "^15.6.0",
3940
"prop-types": "^15.5.10",
4041
"react-timer-mixin": "^0.13.3"
4142
},

0 commit comments

Comments
 (0)