@@ -72,7 +72,7 @@ class Tags extends React.Component {
7272 style,
7373 tagContainerStyle,
7474 tagTextStyle,
75- deleteOnTagPress ,
75+ deleteTagOnPress ,
7676 onTagPress,
7777 readonly,
7878 maxNumberOfTags,
@@ -88,7 +88,7 @@ class Tags extends React.Component {
8888 key = { i }
8989 label = { tag }
9090 onPress = { e => {
91- if ( deleteOnTagPress ) {
91+ if ( deleteTagOnPress ) {
9292 this . setState (
9393 {
9494 tags : [
@@ -112,19 +112,18 @@ class Tags extends React.Component {
112112 />
113113 ) ) }
114114
115- { ! readonly &&
116- maxNumberOfTags > this . state . tags . length && (
117- < View style = { [ styles . textInputContainer , inputContainerStyle ] } >
118- < TextInput
119- { ...textInputProps }
120- value = { this . state . text }
121- style = { [ styles . textInput , inputStyle ] }
122- onChangeText = { this . onChangeText }
123- onSubmitEditing = { this . onSubmitEditing }
124- underlineColorAndroid = "transparent"
125- />
126- </ View >
127- ) }
115+ { ! readonly && maxNumberOfTags > this . state . tags . length && (
116+ < View style = { [ styles . textInputContainer , inputContainerStyle ] } >
117+ < TextInput
118+ { ...textInputProps }
119+ value = { this . state . text }
120+ style = { [ styles . textInput , inputStyle ] }
121+ onChangeText = { this . onChangeText }
122+ onSubmitEditing = { this . onSubmitEditing }
123+ underlineColorAndroid = "transparent"
124+ />
125+ </ View >
126+ ) }
128127 </ View >
129128 ) ;
130129 }
@@ -136,7 +135,7 @@ Tags.defaultProps = {
136135 createTagOnString : [ "," , " " ] ,
137136 createTagOnReturn : false ,
138137 readonly : false ,
139- deleteOnTagPress : true ,
138+ deleteTagOnPress : true ,
140139 maxNumberOfTags : Number . POSITIVE_INFINITY
141140} ;
142141
@@ -148,7 +147,7 @@ Tags.propTypes = {
148147 onChangeTags : PropTypes . func ,
149148 readonly : PropTypes . bool ,
150149 maxNumberOfTags : PropTypes . number ,
151- deleteOnTagPress : PropTypes . bool ,
150+ deleteTagOnPress : PropTypes . bool ,
152151 containerStyle : PropTypes . any ,
153152 style : PropTypes . any ,
154153 inputContainerStyle : PropTypes . any ,
0 commit comments