Skip to content

Conversation

@alesanderlopez
Copy link

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.

- 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
- update method: [animate] for stop the loop when the componentWillUnmount was executed
ywongweb pushed a commit to ywongweb/react-native-counter that referenced this pull request Sep 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant