Commit a332992
Add pointerEvents prop to TextProps (facebook#56950)
Summary:
Pull Request resolved: facebook#56950
Add `pointerEvents` to `TextProps` in the Flow source. This prop is supported at the native layer — `BaseParagraphProps` (the C++ props struct for Text/Paragraph) extends `ViewProps`, which includes `pointerEvents`. The old hand-written TypeScript types (`Text.d.ts`) already declared this prop, but the Flow source did not, causing a gap in the auto-generated strict API types (`types_generated`).
Changelog:
[General][Fixed] - **Strict TypeScript API**: Add missing `pointerEvents` prop to `Text` component
Differential Revision: D1061839601 parent d566838 commit a332992
2 files changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
127 | 134 | | |
128 | 135 | | |
129 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
5043 | 5043 | | |
5044 | 5044 | | |
5045 | 5045 | | |
| 5046 | + | |
5046 | 5047 | | |
5047 | 5048 | | |
5048 | 5049 | | |
| |||
5958 | 5959 | | |
5959 | 5960 | | |
5960 | 5961 | | |
5961 | | - | |
| 5962 | + | |
5962 | 5963 | | |
5963 | 5964 | | |
5964 | 5965 | | |
| |||
6174 | 6175 | | |
6175 | 6176 | | |
6176 | 6177 | | |
6177 | | - | |
| 6178 | + | |
6178 | 6179 | | |
6179 | 6180 | | |
6180 | 6181 | | |
| |||
6188 | 6189 | | |
6189 | 6190 | | |
6190 | 6191 | | |
6191 | | - | |
| 6192 | + | |
6192 | 6193 | | |
6193 | 6194 | | |
6194 | 6195 | | |
| |||
0 commit comments