| 1095 | // for hit tests, once the scroll pauses, as React Native's |
| 1096 | // `ScrollViewStickyHeader` does on Fabric. |
| 1097 | const commitLater = (st: Sticky, host: Native.ViewHost) => { |
| 1098 | clearTimeout(st.timer) |
| 1099 | st.timer = setTimeout(() => { |
| 1100 | st.timer = undefined |
| 1101 | for (const h of st.headers) { |
| 1102 | const { value } = headers.get(h)! |
| 1103 | if (value !== undefined && mounted(h)) { |
| 1104 | host.set(h, "transform", [{ translateY: value }]) |
| 1105 | } |
| 1106 | } |
| 1107 | host.commit() |
| 1108 | }, host.os === "android" ? 15 : 64) |
| 1109 | } |
| 1110 | |
| 1111 | const sourceOf = (d: Driver, name: string): Source => { |
| 1112 | let s = d.sources.get(name) |