Skip to content

SearchBar went multiple lines when unfocused even multiline={false} on IOS #2806

@TheReidZhang

Description

@TheReidZhang

Current behaviour

SearchBar went multiple lines when unfocused even multiline={false}

Expected behaviour

SearchBar should remain single line even when unfocused.

Code sample

<Searchbar
      placeholder={translations['search']}
      onChangeText={v => setValue(v)}
      value={value}
      blurOnSubmit
    />

Screenshots (if applicable)

Focused:
Screen_Shot_2021-07-07_at_5 19 18_AM
Unfocused:
Screen_Shot_2021-07-07_at_5 15 12_AM

What have you tried

  1. Try change contentType
  2. Try multiline={false}
  3. Try numOfLines={1}

Your Environment

software version
ios or android 14.4
react-native 0.64.2
react-native-paper 4.9.1
node 14.17.0
npm or yarn 1.22.4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions