I have a ref of a ScrollView
:
const myRef = React.useRef<null | ScrollView>(null);<ScrollView onScroll={() => { childRef.current?.calcYOffset(); }}
However calcYOffset
gives me this error:
TS2339: Property 'calcYOffset' does not exist on type 'ScrollView'.