https://i.sstatic.net/jhhAN.pngI'm facing an issue while attempting to utilize a useRef hook for a scrollview and pan gesture handler to share a common ref. Upon initializing the useRef() hook and passing it to both components, I encounter an error that states:
TypeError: Attempted to assign to readonly property.
I've experimented with typecasting and adding types to the useRef call without success in resolving the error. Can someone provide assistance?
Here is my component code:
[component code here]
This represents my Screen setup:
[screen code here]