Skip to content

Commit 4b9aa88

Browse files
committed
fix(React): remove React relative path references
1 parent a5eb0f1 commit 4b9aa88

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Libraries/Components/FlipViewWindows/FlipViewWindows.windows.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
var React = require('React');
1010
var ReactNative = require('ReactNative');
11-
var ReactElement = require('react/lib/ReactElement');
1211
var UIManager = require('UIManager');
1312
var View = require('View');
1413

@@ -120,7 +119,7 @@ var FlipViewWindows = React.createClass({
120119
(child.type.displayName !== 'View')) {
121120
console.warn('Each FlipView child must be a <View>. Was ' + child.type.displayName);
122121
}
123-
return ReactElement.createElement(child.type, newProps);
122+
return React.createElement(child.type, newProps);
124123
});
125124
},
126125

Libraries/Components/Picker/PickerWindows.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
var ColorPropType = require('ColorPropType');
1616
var React = require('React');
17-
var ReactChildren = require('react/lib/ReactChildren');
1817
var StyleSheet = require('StyleSheet');
1918
var StyleSheetPropType = require('StyleSheetPropType');
2019
var View = require('View');
@@ -62,7 +61,7 @@ var PickerWindows = React.createClass({
6261
// Translate prop and children into stuff that the native picker understands.
6362
_stateFromProps: function(props) {
6463
var selectedIndex = 0;
65-
let items = ReactChildren.map(props.children, (child, index) => {
64+
let items = React.Children.map(props.children, (child, index) => {
6665
if (child.props.value === props.selectedValue) {
6766
selectedIndex = index;
6867
}

0 commit comments

Comments
 (0)