Skip to content

Commit 2f7da3b

Browse files
committed
[Exports] Expose more modules for authors of custom components
Added some more exports to React that are either necessary or often useful for component authors.
1 parent abea586 commit 2f7da3b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Libraries/react-native/react-native.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ var ReactNative = Object.assign(Object.create(require('React')), {
2929
Navigator: require('Navigator'),
3030
ScrollView: require('ScrollView'),
3131
SliderIOS: require('SliderIOS'),
32+
StaticContainer: require('StaticContainer.react'),
3233
SwitchIOS: require('SwitchIOS'),
3334
TabBarIOS: require('TabBarIOS'),
3435
Text: require('Text'),
@@ -61,10 +62,15 @@ var ReactNative = Object.assign(Object.create(require('React')), {
6162
NativeModules: require('NativeModules'),
6263
requireNativeComponent: require('requireNativeComponent'),
6364

65+
// Prop Types
66+
EdgeInsetsPropType: require('EdgeInsetsPropType'),
67+
PointPropType: require('PointPropType'),
68+
6469
addons: {
6570
LinkedStateMixin: require('LinkedStateMixin'),
6671
Perf: undefined,
6772
PureRenderMixin: require('ReactComponentWithPureRenderMixin'),
73+
StaticRenderer: require('StaticRenderer'),
6874
TestModule: require('NativeModules').TestModule,
6975
TestUtils: undefined,
7076
batchedUpdates: require('ReactUpdates').batchedUpdates,

0 commit comments

Comments
 (0)