Changed tag count 5 to 7

This commit is contained in:
Mustafa Buyukcelebi 2019-08-13 22:11:27 +03:00
parent da3617eb9a
commit c8f9884dc9

View File

@ -19,7 +19,7 @@ export default class TagAreaView extends Component {
this.state = { this.state = {
currentText: '', currentText: '',
chips: props.draftChips || [' '], chips: props.draftChips || [' '],
chipsCount: props.chipsCount || 5, chipsCount: props.chipsCount || 7,
activeChip: 0, activeChip: 0,
}; };
} }
@ -102,7 +102,7 @@ export default class TagAreaView extends Component {
<ScrollView horizontal style={styles.tagWrapper}> <ScrollView horizontal style={styles.tagWrapper}>
{chips.map( {chips.map(
(chip, i) => (chip, i) =>
i < 5 && ( i < 7 && (
<Chip <Chip
key={i} key={i}
refs={input => { refs={input => {