Skip to content

Commit

Permalink
Merge pull request #5 from jimji1005/patch-1
Browse files Browse the repository at this point in the history
Migrate proptype for react => 16
  • Loading branch information
chagasaway committed Dec 3, 2017
2 parents 9c7c55d + cb5164e commit 9194061
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions AutoComplete/AutoComplete.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { TouchableHighlight, Text, TextInput, View } from 'react-native'
import stringScore from 'string_score'
import Styles from './Styles'
Expand Down Expand Up @@ -116,19 +117,20 @@ class AutoComplete extends Component {
}
}

// migrated proptype for react 15+
AutoComplete.propTypes = {
suggestions: React.PropTypes.array,
value: React.PropTypes.string,
minimumSimilarityScore: React.PropTypes.number,
comparationFuzziness: React.PropTypes.number,
suggestionObjectTextProperty: React.PropTypes.string,
onChangeText: React.PropTypes.func,
onSelect: React.PropTypes.func.isRequired,
suggestionsWrapperStyle: React.PropTypes.any,
suggestionStyle: React.PropTypes.any,
suggestionTextStyle: React.PropTypes.any,
style: React.PropTypes.any,
inputStyle: React.PropTypes.any
suggestions: PropTypes.array,
value: PropTypes.string,
minimumSimilarityScore: PropTypes.number,
comparationFuzziness: PropTypes.number,
suggestionObjectTextProperty: PropTypes.string,
onChangeText: PropTypes.func,
onSelect: PropTypes.func.isRequired,
suggestionsWrapperStyle: PropTypes.any,
suggestionStyle: PropTypes.any,
suggestionTextStyle: PropTypes.any,
style: PropTypes.any,
inputStyle: PropTypes.any
}

AutoComplete.defaultProps = {
Expand Down

1 comment on commit 9194061

@devlinpadayachee
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Latest Merge does not work yet. Get a proptype error on installation

Please sign in to comment.