Skip to content

Commit aa25cae

Browse files
author
huangqi03
committed
add getNativeNode and getHostNode to fix warn
1 parent e9f1655 commit aa25cae

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

lib/ContainerMixin.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ var ContainerMixin = Object.assign({}, ReactMultiChild.Mixin, {
121121
i++;
122122
}
123123
}
124-
}
124+
},
125+
getHostNode: function () {},
126+
getNativeNode: function () {}
125127

126128
});
127129

lib/LayerMixin.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ var LayerMixin = {
8888

8989
unmountComponent: function() {
9090
this.destroyEventListeners();
91-
}
91+
},
92+
getHostNode: function () {},
93+
getNativeNode: function () {}
9294

9395
};
9496

lib/createComponent.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
var RenderLayer = require('./RenderLayer');
77

88
function createComponent (name) {
9-
var ReactCanvasComponent = function (props) {
9+
var ReactCanvasComponent = function (element) {
1010
this.node = null;
1111
this.subscriptions = null;
1212
this.listeners = null;
1313
this.node = new RenderLayer();
1414
this._mountImage = null;
15+
this._currentElement = element;
1516
this._renderedChildren = null;
1617
this._mostRecentlyPlacedChild = null;
1718
};

0 commit comments

Comments
 (0)