Skip to content

Commit b11e2c2

Browse files
Merge pull request APSL#137 from ozsirma/master
Migrating from React.PropTypes to prop-types to react-native v0.44
2 parents 6dd0212 + a6fba86 commit b11e2c2

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

lib/KeyboardAwareListView.js

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

3-
import React, { PropTypes } from 'react'
3+
import React from 'react'
44
import { ListView } from 'react-native'
5+
import PropTypes from 'prop-types'
56
import KeyboardAwareMixin from './KeyboardAwareMixin'
67

78
const KeyboardAwareListView = React.createClass({

lib/KeyboardAwareMixin.js

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

3-
import { PropTypes } from 'react'
3+
import PropTypes from 'prop-types'
44
import ReactNative, { TextInput, Keyboard, UIManager } from 'react-native'
55
import TimerMixin from 'react-timer-mixin'
66

lib/KeyboardAwareScrollView.js

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

3-
import React, { PropTypes } from 'react'
3+
import React from 'react'
44
import { ScrollView } from 'react-native'
5+
import PropTypes from 'prop-types'
56
import KeyboardAwareMixin from './KeyboardAwareMixin'
67

78
const KeyboardAwareScrollView = React.createClass({

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@
3636
},
3737
"homepage": "https://github.com/APSL/react-native-keyboard-aware-scroll-view#readme",
3838
"dependencies": {
39-
"react-timer-mixin": "^0.13.3"
39+
"react-timer-mixin": "^0.13.3",
40+
"prop-types": "^15.5.10"
4041
},
4142
"devDependencies": {
4243
"babel-eslint": "^6.0.4",
4344
"eslint": "^3.17.1",
4445
"eslint-plugin-react": "^6.10.0",
4546
"flow-bin": "0.33.0"
4647
}
47-
}
48+
}

0 commit comments

Comments
 (0)