kosaikham / inshorts-ui-animation-clone

A swipeIn / swipeOut animation clone from Inshorts App built with React Native [Expo]
9 stars 7 forks source link

undefined is not an object #1

Open rutul089 opened 3 years ago

rutul089 commented 3 years ago

I am getting this error undefined is not an object (evaluating '_this.PanResponder.panHandlers') can you help me with this ? I am using the same code in react native cli .

Screenshot_2020-10-10-12-24-01-729_com adminlogin 1

Pulkit-SE commented 2 years ago

Hi @rutul089, facing the same issue. I got it working by setting the value of x as 0 in onPanResponderMove function's else part. Just replace this.position.setValue({ y: gestureState.dy }); with this.position.setValue({ x: 0, y: gestureState.dy });