React-native-google-places-autocomplete: Multiline behaviour

Created on 11 Nov 2020  路  2Comments  路  Source: FaridSafi/react-native-google-places-autocomplete

How we can achieve the same behaviour of TextInput multiline prop, using custom input?

question

Most helpful comment

Have you tried

...
textInputProps={{
        InputComp: Input,
        multiline: true
 }}
...

All of the textInputProps get passed to the TextInput. If the Input component supports a prop, you can put it in textInputProps.

All 2 comments

Have you tried

...
textInputProps={{
        InputComp: Input,
        multiline: true
 }}
...

All of the textInputProps get passed to the TextInput. If the Input component supports a prop, you can put it in textInputProps.

@bell-steven yeah, that approach is working, later i discovered that documentation was updated about custom input, thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GervaisYO picture GervaisYO  路  4Comments

sohel-tech picture sohel-tech  路  3Comments

akhlopyk picture akhlopyk  路  3Comments

DennisMuchiri picture DennisMuchiri  路  4Comments

miguel-pm picture miguel-pm  路  3Comments