Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move listener instantiation out of constructor (ReactTraining#139)
I suspected that the issue lay in the listener being created in the constructor, and playing havoc with the `this` scope so I broke it out into its own function and passed the necessary parameters in. This succeeded in resolving the issue reported in ReactTraining#139 by removing the root of the issue instead of covering it up with my previous PR.
- Loading branch information