Fabian Eichinger 90403154a2 Snapshot the Set of listeners when dispatching a BackAndroid event
Summary:
…while an event is dispatched

While it is guarded, a copy of the Set is created before listeners are added or removed. The event dispatch loop continues with the old Set of listeners.

This PR modifies `BackAndroid` to match the proposal at the end of #5781.
Closes https://github.com/facebook/react-native/pull/5783

Reviewed By: svcscm

Differential Revision: D2911282

Pulled By: foghina

fb-gh-sync-id: 34964ec3414af85eb9574bbcef081238fc67ffaf
2016-02-08 03:23:35 -08:00
..
2016-01-28 12:08:50 -08:00
2016-01-21 10:57:26 -08:00
2016-01-21 10:57:26 -08:00
2015-12-15 09:09:32 -08:00
2015-12-15 09:09:32 -08:00
2016-02-01 12:42:33 -08:00
2015-12-15 09:09:32 -08:00
2016-01-15 05:15:31 -08:00
2015-12-15 09:09:32 -08:00
2015-12-15 06:56:31 -08:00