react-native/Examples/UIExplorer/UIExplorerIntegrationTests
Ben Alpert 6a838a4201 Consume react, fbjs from npm
Summary:
We don't (yet) treat these the same as any other modules because we still have special resolution rules for them in the packager allowing the use of `providesModule`, but I believe this allows people to use npm react in their RN projects and not have duplicate copies of React. Fixes facebook/react-native#2985.

This relies on fbjs 0.6, which includes `.flow` files alongside the `.js` files to allow them to be typechecked without additional configuration. This also uses react 0.14.5, which shims a couple of files (as `.native.js`) to avoid DOM-specific bits. Once we fix these in React, we will use the same code on web and native. Hopefully we can also remove the packager support I'm adding here for `.native.js`.

This diff is not the desired end state for us – ideally the packager would know nothing of react or fbjs, and we'll get there eventually by not relying on `providesModule` in order to load react and fbjs modules. (fbjs change posted here but not merged yet: https://github.com/facebook/fbjs/pull/84.)

This should also allow relay to work seamlessly with RN, but I haven't verified this.

public

Reviewed By: sebmarkbage

Differential Revision: D2786197

fb-gh-sync-id: ff50f28445e949edc9501f4b599df7970813870d
2015-12-30 11:41:09 -08:00
..
ReferenceImages Support dashed and dotted border styles on iOS 2015-12-23 10:07:28 -08:00
Info.plist Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
RCTLoggingTests.m Consume react, fbjs from npm 2015-12-30 11:41:09 -08:00
RCTRootViewIntegrationTests.m RCTRootView integration tests 2015-11-19 13:34:31 -08:00
RCTUIManagerScenarioTests.m Replaced RCTSparseArray with NSDictionary 2015-11-14 10:28:28 -08:00
UIExplorerIntegrationTests.m Move JS integration tests to root folder 2015-11-18 09:35:19 -08:00
UIExplorerSnapshotTests.m added method to set thumb image 2015-11-24 16:10:04 -08:00
blue_square.png Reload RCTImageView when it's displaying the default image 2015-10-19 10:26:24 -07:00
red_square.png Reload RCTImageView when it's displaying the default image 2015-10-19 10:26:24 -07:00