Fixed Textinput not properly handling padding and paddingVertical in style props (#33564)
Summary:
Fixes https://github.com/facebook/react-native/issues/33562 #21720. Earlier this [`paddingTop`](d5da70e17e/Libraries/Components/TextInput/TextInput.js (L1367)
) used to override the `paddingTop` of `padding` and `paddingVertical` of the style props. Using `Stylesheet.flatten` will solve this problem.
## Changelog
<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://github.com/facebook/react-native/wiki/Changelog
-->
[iOS] [Fixed] - Fixed paddingTop not being applied when using padding and paddingVertical in multiline textinput
Pull Request resolved: https://github.com/facebook/react-native/pull/33564
Reviewed By: christophpurrer, cortinico
Differential Revision: D36018667
Pulled By: kacieb
fbshipit-source-id: 0af0ed8ea536ec4e813325b1cf93c7cb2481eb07
This commit is contained in:
Родитель
d51534ae01
Коммит
2fb107c9a6
|
@ -1233,7 +1233,7 @@ function InternalTextInput(props: Props): React.Node {
|
|||
|
||||
const style =
|
||||
props.multiline === true
|
||||
? [styles.multilineInput, props.style]
|
||||
? StyleSheet.flatten([styles.multilineInput, props.style])
|
||||
: props.style;
|
||||
|
||||
const useOnChangeSync =
|
||||
|
|
Загрузка…
Ссылка в новой задаче