I would like to scroll to an element that is y unit under my touchableopacity(when I press on it). I tried using ref and useref but it was not what I wanted. Is it possible to scroll down a specific length when you press on a button?Here is some code to illustrate :
return (<View><Text onPress={() => { idData = data.id; totalid++; // here is the total, the length //that I want to scroll down alert("mon id est: " + idData); viewRef.current?.focus(); } }}> {Data.name}</Text></View>
and somewhere bellow:
<View ref={viewRef}>