Commit 10d4813
iOS: Fixes textinput onscroll event payload (#43445)
Summary:
Fixes #43428 . cc cortinico .
## Changelog:
[IOS] [FIXED] - [Fabric] iOS: Fixes textinput onscroll event payload
Pull Request resolved: #43445
Test Plan:
```
const onInputScroll = (e) => {
if (Platform.OS !== "web") {
const {
nativeEvent: {
contentOffset: { x, y },
},
} = e;
console.log('onInputScroll ====', e?.nativeEvent)
}
};
<TextInput
onScroll={onInputScroll}
// ref={inputRef}
multiline
/>
```
Reviewed By: cortinico
Differential Revision: D54813378
Pulled By: sammy-SC
fbshipit-source-id: 76671fbb390c2fbc67a9c29b6c2a834ba699fff41 parent 4148a31 commit 10d4813
File tree
1 file changed
+53
-1
lines changed- packages/react-native/ReactCommon/react/renderer/components/textinput/platform/ios/react/renderer/components/iostextinput
1 file changed
+53
-1
lines changedLines changed: 53 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
39 | 89 | | |
40 | 90 | | |
41 | 91 | | |
| |||
121 | 171 | | |
122 | 172 | | |
123 | 173 | | |
124 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
125 | 177 | | |
126 | 178 | | |
127 | 179 | | |
| |||
0 commit comments