react-native-paper
react-native-paper copied to clipboard
fix(text-input): parent scroll with text input height
Platform: Android only
Motivation
This pull request fixes two bugs that are related to each other.
- TextInput
mode="outlined"withheightstyle property blocks parent scroll.
https://github.com/callstack/react-native-paper/assets/165782545/e7b8e7b8-157e-41d0-bbf0-8673a5d01466
-
mode="outlined"Left/right suffix is not correctly aligned to input when height style is provided -
mode="flat"(default) blocks scrolling of the parent with a large font. The bug can be reproduced in the example app “Flat input large font”.
https://github.com/callstack/react-native-paper/assets/165782545/20bf336d-9ed2-4cad-853e-82e8e0159641
Related issue
#1556, #4390,
Test plan
- To test issue 1 and 2 run example app and set
heightstyle of the Text input prop - To test issue 3 run example app, and try to scroll starting from
Flat input large font
Recording below shows result with the fix:
https://github.com/callstack/react-native-paper/assets/165782545/4a9ef63b-7a7a-42e1-ad99-4ed63dea281a
Hey @seb-zabielski, thank you for your pull request 🤗. The documentation from this branch can be viewed here.
LGTM