Closed andy-clapham closed 2 years ago
Hi - Very handy library, thanks! I'm using the pattern:
useEffect(() => { const subscription = RNShake.addListener(onUndo); return () => subscription.remove(); });
is this a valid way to do it, or should I be using removeListener() ... or both?
This is up now with 5.1.0, you are now able to use it as the code you want above. Thanks for using!
Cheers!
Hi - Very handy library, thanks! I'm using the pattern:
is this a valid way to do it, or should I be using removeListener() ... or both?