react-native-counter icon indicating copy to clipboard operation
react-native-counter copied to clipboard

Added reset & fix memory leak when unmount parent

Open alesanderlopez opened this issue 7 years ago • 0 comments

Counter.js

  • added method: [reset] to reset the counter again to start.
  • added method: [componentWillUnmount] to stop the counter and fix memory leak when Unmount parent view or change view in react-native-router-flux.
  • updated method: [animate] for stop the loop when the componentWillUnmount was executed.

Readme.md

  • added example to call reset from parent view.

alesanderlopez avatar Jul 30 '18 23:07 alesanderlopez