React native const currendex=useRef(0)。如何在react native中使用类组件中的useRef

React native const currendex=useRef(0)。如何在react native中使用类组件中的useRef,react-native,use-ref,React Native,Use Ref,这个=const currendex=useRef(0);,是什么意思;。以及如何在react native的类组件中使用它

这个=const currendex=useRef(0);,是什么意思;。以及如何在react native的类组件中使用它