react-native/React
Kasper Hirvikoski 101190f7f8 Verify exported modules only once to support dynamic context in DEBUG-mode
Summary:
**Motivation:** We have a project that dynamically changes classes in runtime. This component is initialised within the React Native context. Therefor `RCTBatchedBridge` copies the classes before changes are made to them. While React Native is running, changes are made to the classes dynamically. When the project reloads the `RCTBatchedBridge`, it now has an invalid list of classes containing trash pointers. This causes the project to crash on https://github.com/facebook/react-native/blob/master/React/Base/RCTBatchedBridge.m#L288 with EXC_BAD_ACCESS in the DEBUG-mode.

**Solution:** Copy the class list on each reload to get the current state. Since this is only a DEBUG-feature the overhead of this should not be a major issue.
Closes https://github.com/facebook/react-native/pull/9541

Differential Revision: D3775012

Pulled By: javache

fbshipit-source-id: d55fa0742ca100d8018c73080230cf718aa5a7e9
2016-08-29 12:13:34 -07:00
..
Base Verify exported modules only once to support dynamic context in DEBUG-mode 2016-08-29 12:13:34 -07:00
CSSLayout Revert changes causing layout failures 2016-08-26 03:13:41 -07:00
Executors Remove iOS 7 version check in RCTJSCWrapperCreate 2016-08-18 03:28:34 -07:00
Modules allow finding the rootTag of any reactTag inside UIManager 2016-08-28 22:58:28 -07:00
Profiler Fix some analyzer warnings 2016-08-09 03:58:36 -07:00
React.xcodeproj Added way to not launch packager during CI build, as it hangs CI builds 2016-08-24 10:13:36 -07:00
Views fix typo 2016-08-24 08:29:00 -07:00