Skip to content

Commit 598d37f

Browse files
sahrensfacebook-github-bot-4
authored andcommitted
Quick fix to require cycle in UnimplementedView
Reviewed By: vjeux Differential Revision: D2686884 fb-gh-sync-id: 99afd8b389d5849d708654a4967dbd403ac24a9b
1 parent db617e5 commit 598d37f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Libraries/Components/UnimplementedViews/UnimplementedView.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
var React = require('React');
1111
var StyleSheet = require('StyleSheet');
12-
var View = require('View');
1312

1413
var UnimplementedView = React.createClass({
1514
setNativeProps: function() {
@@ -18,6 +17,8 @@ var UnimplementedView = React.createClass({
1817
// See ensureComponentIsNative.js for more info
1918
},
2019
render: function() {
20+
// Workaround require cycle from requireNativeComponent
21+
var View = require('View');
2122
return (
2223
<View style={[styles.unimplementedView, this.props.style]}>
2324
{this.props.children}

0 commit comments

Comments
 (0)