Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6211

React Native TypeScript error: Property 'calcYOffset' does not exist on type 'ScrollView'

$
0
0

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'.


Viewing all articles
Browse latest Browse all 6211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>