myussufz / react-native-ipay88-sdk

React Native for integrating with iPay88 payment gateway's mobile SDK
18 stars 17 forks source link

remove subscription when unmount #13

Closed aibrahim3546 closed 5 years ago

aibrahim3546 commented 5 years ago

Remove event listener subscription when component unmount which caused a memory leak.