innerRef={ value => { _someRef = value } }
Above code is not possible when using React Hook's useEffect.
innerRef={ _someRef }
Whereas this causes a type error as _someRef is not a function.
const refScroll = useRef(null)
innerRef={ value => { refScroll.current = value } }
This may work
I'm having the same issue, useRef is not working, even tried suggestion above
null is not an object (evaluating refScroll.current.props)
@DrySoldier : initial value of ref is NULL, so you much check null value before access
if (refScroll.current !== null) {
// do something with refScroll.current
}
Most helpful comment
This may work