Please sign in to comment.
[ReactNative] Remove module info from the data section + allow extern…
…al modules Summary: @public The information we required about the exported methods were previously stored on the binary's DATA section, which didn't allow to access methods on different static libraries, or in any dynamic library at all. Instead of fetching information from all the DATA segments, this diff changes the macro in order to create a new method, that returns the required information about the original method. The module itself is registered at load time, and on the bridge initialization all the auto-generated methods are called to gather the methods' information. Test Plan: UIExplorer previously had a dependency on `RCTTest`, because it had a `TestModule` that had to be on the same library. `RCTTest` is now a dependency of `UIExplorerIntegrationTests`. So the tests themselves running should test it.
- Loading branch information...
Showing with 150 additions and 171 deletions.
- +16 −4 Examples/UIExplorer/UIExplorer.xcodeproj/project.pbxproj
- +10 −3 React/Base/RCTBridge.h
- +107 −157 React/Base/RCTBridge.m
- +9 −7 React/Base/RCTBridgeModule.h
- +8 −0 React/Base/RCTDefines.h
Oops, something went wrong.