mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
9bb042fe58
Summary: UpdateLocalData and UpdateState return an `extra data` object, which in the case of TextInput contains padding. In Paper, the padding was always set on this object; in Fabric, it generally is not. However, the ViewManager was unconditionally setting the padding on the view, regardless of whether or not padding was set. We just check the padding values before setting now. This fixes an issue where the padding would be reset when the user started typing in Fabric. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D18875261 fbshipit-source-id: d7cb87c07f47ab522e32cd34a4ca6ed5fea2e832