how to open and close drawer using gesture in react/js?