You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It means we do not need to move TextInput label with translateX to adjust label position after scaling. Most likely translateX was needed b/c transform origin was always related to center before v0.73. Now we can set it left and remove translateX position adjustments.
Related issues: #4245 #4299 #4340
and possibly more related issues reporting TextInput label flickering..
The text was updated successfully, but these errors were encountered:
The actual reason of flickering b/c translateX has some default value based on label width === 0 before the first rendering of the label element. Then it gets the correct width from onLayout event, and renders the correct position with new translateX value. Unfortunately there is no way to detect label width before rendering it, so transformOrigin should help, so no need to apply translateX.
See related source code:
react-native-paper/src/components/TextInput/Label/InputLabel.tsx
Line 62 in 813cdd4
See React Native 0.73 docs mentioning
transformOrigin
https://reactnative.dev/docs/0.73/transforms#transform-originIt means we do not need to move TextInput label with translateX to adjust label position after scaling. Most likely
translateX
was needed b/c transform origin was always related tocenter
before v0.73. Now we can set itleft
and removetranslateX
position adjustments.Related issues:
#4245
#4299
#4340
and possibly more related issues reporting TextInput label flickering..
The text was updated successfully, but these errors were encountered: