Skip to content

Commit

Permalink
[Exports] Expose more modules for authors of custom components
Browse files Browse the repository at this point in the history
Added some more exports to React that are either necessary or often useful for component authors.
  • Loading branch information
ide committed Apr 21, 2015
1 parent 9ee6cd6 commit c3a8f7a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Libraries/react-native/react-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ var ReactNative = Object.assign(Object.create(require('React')), {
Navigator: require('Navigator'),
ScrollView: require('ScrollView'),
SliderIOS: require('SliderIOS'),
StaticContainer: require('StaticContainer.react'),
SwitchIOS: require('SwitchIOS'),
TabBarIOS: require('TabBarIOS'),
Text: require('Text'),
Expand Down Expand Up @@ -61,10 +62,15 @@ var ReactNative = Object.assign(Object.create(require('React')), {
NativeModules: require('NativeModules'),
requireNativeComponent: require('requireNativeComponent'),

// Prop Types
EdgeInsetsPropType: require('EdgeInsetsPropType'),
PointPropType: require('PointPropType'),

addons: {
LinkedStateMixin: require('LinkedStateMixin'),
Perf: undefined,
PureRenderMixin: require('ReactComponentWithPureRenderMixin'),
StaticRenderer: require('StaticRenderer'),
TestModule: require('NativeModules').TestModule,
TestUtils: undefined,
batchedUpdates: require('ReactUpdates').batchedUpdates,
Expand Down

0 comments on commit c3a8f7a

Please sign in to comment.