Skip to content

Conversation

@bob-carson
Copy link
Contributor

Subscribable.Mixin appears to have been built using code that was meant to support React's EventEmitter, but DeviceEventEmitter has been mocked using node's 'events' event emitter. The only use of Subscribable.Mixin is in ScrollResponder.Mixin which uses the mocked DeviceEventEmitter.

This PR updates Subscribable.Mixin to work with DeviceEventEmitter, including the previously unsupported componentWillUnmount.

@bob-carson bob-carson merged commit 8dc2a62 into master Jan 4, 2017
@bob-carson bob-carson deleted the rmc-subscribable-fix branch January 4, 2017 19:50
kukiron referenced this pull request in kukiron/react-native-mock-render Oct 22, 2020
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.

2 participants