Category "tsx"

React native swipe animation not working and no error

I'm using a swipe animation, the same one that is being used in apps like tinder. The animation used to work in a Class component and in JSX but I had to change

React JS - MUI How to fix problem with expand/collapse and open drawer

I have 2 problems in the code that I can't solve. The first is the opening sidebar menu. The menu opens but does not close. It should close either with a click

useRef TypeScript - not assignable to type LegacyRef<HTMLDivElement>

I am trying to use useRef with TypeScript but am having some trouble. With my RefObject (I assume) I need to access current. (ie node.current) I have tried the