jwohlfert23 / react-native-tag-input

A simple React Native component that creates an input for tags, emails, etc.
MIT License
231 stars 104 forks source link

how to hide the start typing ? #73

Closed michaelVictoriaDev closed 5 years ago

michaelVictoriaDev commented 5 years ago

screen shot 2019-02-11 at 9 31 36 am

my code looks like this

     <TagInput
    maxHeight={'100%'}
    inputDefaultWidth={'75%'}
    style={{paddingLeft: 10, paddingBottom: 2 }}
    editable={false}
    value={this.state.to}
    onChange={(to) => this.setState({ to })}
    labelExtractor={(email) => email}
    style={{ paddingLeft: 10, paddingBottom: 2 }}
                            />

you can see the screen shot there's a editable={false} which I assume that there's no start typing placeholder,

michaelVictoriaDev commented 5 years ago

I found a solution inputProps={{ placeholder: ' ' , multiline: true }}