Skip to content

SearchBar does not seem to work with custom height #4304

@msageryd

Description

@msageryd

I'm upgrading an old app. React-native-paper was upgraded from 4.10.1 to 5.12.3.
The SearchBar worked fine in v4.10.1

Here is how I'm using it:

<Searchbar
  placeholder={'search'}
  onChangeText={onChange}
  value={searchQuery}
  style={{
    height: 30,
    borderColor: 'lightblue',
    borderWidth: 1,
    backgroundColor: 'white',
    margin: 6,
  }}
/>

There seems to be an internal padding added, but I'm not able to change it via padding, paddingTop or paddingVertical

image

Your Environment

software version
ios 17.2 (simulator)
react-native 0.73.3
react-native-paper 5.12.3
node 18.19
npm. 10.2.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    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