mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-23 05:13:04 +03:00
remove button fir first tag
This commit is contained in:
parent
2a44133bc4
commit
33b993cc45
@ -99,32 +99,32 @@ export default class TagAreaView extends Component {
|
|||||||
<ScrollView horizontal style={styles.tagWrapper}>
|
<ScrollView horizontal style={styles.tagWrapper}>
|
||||||
{chips.map(
|
{chips.map(
|
||||||
(chip, i) => i < 5 && (
|
(chip, i) => i < 5 && (
|
||||||
<Chip
|
<Chip
|
||||||
key={i}
|
key={i}
|
||||||
refs={(input) => {
|
refs={(input) => {
|
||||||
this.inputs[i] = input;
|
this.inputs[i] = input;
|
||||||
}}
|
}}
|
||||||
isPin={i === 0 && chips[1]}
|
isPin={i === 0 && chips[1]}
|
||||||
placeholderTextColor="#fff"
|
placeholderTextColor="#fff"
|
||||||
removeButton={i !== 0}
|
removeButton
|
||||||
handleOnRemoveButtonPress={() => this._handleTagRemove(i)}
|
handleOnRemoveButtonPress={() => this._handleTagRemove(i)}
|
||||||
editable={!isPreviewActive}
|
editable={!isPreviewActive}
|
||||||
maxLength={50}
|
maxLength={50}
|
||||||
placeholder="tags"
|
placeholder="tags"
|
||||||
autoFocus={i !== 0 && chips.length - 1 === i}
|
autoFocus={i !== 0 && chips.length - 1 === i}
|
||||||
multiline={false}
|
multiline={false}
|
||||||
handleOnChange={text => this._handleOnChange(text, i)}
|
handleOnChange={text => this._handleOnChange(text, i)}
|
||||||
handleOnBlur={() => this._handleOnBlur(i)}
|
handleOnBlur={() => this._handleOnBlur(i)}
|
||||||
blurOnSubmit
|
blurOnSubmit
|
||||||
value={
|
value={
|
||||||
activeChip === i
|
activeChip === i
|
||||||
? currentText || chip.replace(/\s/g, '')
|
? currentText || chip.replace(/\s/g, '')
|
||||||
: chip.replace(/\s/g, '')
|
: chip.replace(/\s/g, '')
|
||||||
}
|
}
|
||||||
autoCapitalize="none"
|
autoCapitalize="none"
|
||||||
onFocus={() => this.setState({ activeChip: i })}
|
onFocus={() => this.setState({ activeChip: i })}
|
||||||
{...this.props}
|
{...this.props}
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
)}
|
)}
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
Loading…
Reference in New Issue
Block a user