Commit 426b300
Remove ReactEditText Legacy Background Path (facebook#46162)
Summary:
Pull Request resolved: facebook#46162
## This Diff
This removes the legacy path from ReactEditText and its view manager.
## This Stack
This removes the non-Style-applicator background management paths of the different native components. There have been multiple conflicting changes, and bugs added bc harder to reason about, which motivates making this change as soon as possible. This also lets us formalize guarantees that BaseViewManager may safely manipulate background styling of all built in native components.
There is one still known issue, where BackgroundStyleApplicator does not propagate I18nManager derived layout direction to borders (compared to Android derived root direction). This is mostly an issue for apps that with LTR and RTL context, or force a layout direction, which I would guess is relatively rare, so my plan is to forward fix this later this by enabling set_android_layout_direction which will solve that problem mopre generically.
Changelog: [Internal]
Reviewed By: cortinico
Differential Revision: D61658080
fbshipit-source-id: 6ac7c5ed230e44fe307640a730e076b903e0674a1 parent b4d2829 commit 426b300
File tree
2 files changed
+38
-105
lines changed- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/textinput
2 files changed
+38
-105
lines changedLines changed: 24 additions & 56 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| |||
76 | 75 | | |
77 | 76 | | |
78 | 77 | | |
79 | | - | |
80 | 78 | | |
81 | 79 | | |
82 | 80 | | |
| |||
133 | 131 | | |
134 | 132 | | |
135 | 133 | | |
136 | | - | |
137 | | - | |
138 | 134 | | |
139 | 135 | | |
140 | 136 | | |
| |||
147 | 143 | | |
148 | 144 | | |
149 | 145 | | |
150 | | - | |
151 | 146 | | |
152 | 147 | | |
153 | 148 | | |
| |||
765 | 760 | | |
766 | 761 | | |
767 | 762 | | |
768 | | - | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
769 | 766 | | |
770 | 767 | | |
771 | 768 | | |
| |||
827 | 824 | | |
828 | 825 | | |
829 | 826 | | |
830 | | - | |
831 | | - | |
| 827 | + | |
| 828 | + | |
832 | 829 | | |
833 | 830 | | |
834 | 831 | | |
| |||
1087 | 1084 | | |
1088 | 1085 | | |
1089 | 1086 | | |
1090 | | - | |
1091 | | - | |
1092 | | - | |
1093 | | - | |
1094 | | - | |
| 1087 | + | |
1095 | 1088 | | |
1096 | 1089 | | |
1097 | 1090 | | |
1098 | | - | |
1099 | | - | |
1100 | | - | |
1101 | | - | |
1102 | | - | |
1103 | | - | |
| 1091 | + | |
| 1092 | + | |
1104 | 1093 | | |
1105 | 1094 | | |
1106 | 1095 | | |
1107 | | - | |
1108 | | - | |
1109 | | - | |
1110 | | - | |
1111 | | - | |
| 1096 | + | |
1112 | 1097 | | |
1113 | 1098 | | |
1114 | 1099 | | |
1115 | | - | |
1116 | | - | |
1117 | | - | |
1118 | | - | |
1119 | | - | |
1120 | | - | |
1121 | | - | |
1122 | | - | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
1123 | 1104 | | |
1124 | 1105 | | |
1125 | 1106 | | |
1126 | 1107 | | |
1127 | 1108 | | |
1128 | 1109 | | |
1129 | 1110 | | |
1130 | | - | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
1141 | 1118 | | |
1142 | 1119 | | |
1143 | 1120 | | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
| 1121 | + | |
| 1122 | + | |
1150 | 1123 | | |
1151 | 1124 | | |
1152 | 1125 | | |
| |||
1300 | 1273 | | |
1301 | 1274 | | |
1302 | 1275 | | |
1303 | | - | |
1304 | 1276 | | |
1305 | 1277 | | |
1306 | 1278 | | |
1307 | 1279 | | |
1308 | 1280 | | |
1309 | | - | |
1310 | | - | |
1311 | | - | |
1312 | | - | |
1313 | | - | |
1314 | | - | |
| 1281 | + | |
| 1282 | + | |
1315 | 1283 | | |
1316 | 1284 | | |
1317 | 1285 | | |
| |||
Lines changed: 14 additions & 49 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
957 | 956 | | |
958 | 957 | | |
959 | 958 | | |
960 | | - | |
961 | | - | |
962 | | - | |
963 | | - | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | | - | |
968 | | - | |
969 | | - | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
978 | 965 | | |
979 | 966 | | |
980 | 967 | | |
981 | 968 | | |
982 | | - | |
983 | | - | |
984 | | - | |
985 | | - | |
986 | | - | |
987 | | - | |
988 | | - | |
989 | | - | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
990 | 973 | | |
991 | 974 | | |
992 | 975 | | |
| |||
1023 | 1006 | | |
1024 | 1007 | | |
1025 | 1008 | | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
| 1009 | + | |
1034 | 1010 | | |
1035 | 1011 | | |
1036 | 1012 | | |
| |||
1043 | 1019 | | |
1044 | 1020 | | |
1045 | 1021 | | |
1046 | | - | |
1047 | | - | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
1051 | | - | |
| 1022 | + | |
1052 | 1023 | | |
1053 | 1024 | | |
1054 | 1025 | | |
| |||
1058 | 1029 | | |
1059 | 1030 | | |
1060 | 1031 | | |
1061 | | - | |
1062 | | - | |
1063 | | - | |
| 1032 | + | |
1064 | 1033 | | |
1065 | 1034 | | |
1066 | 1035 | | |
1067 | 1036 | | |
1068 | | - | |
1069 | | - | |
1070 | | - | |
1071 | | - | |
1072 | | - | |
| 1037 | + | |
1073 | 1038 | | |
1074 | 1039 | | |
1075 | 1040 | | |
| |||
0 commit comments