Skip to content

Commit e17e313

Browse files
author
huangqi03
committed
fix mountComponent params
1 parent aa25cae commit e17e313

File tree

5 files changed

+30
-5
lines changed

5 files changed

+30
-5
lines changed

lib/Gradient.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ var Gradient = createComponent('Gradient', LayerMixin, {
1313
this.applyLayerProps(prevProps, props);
1414
},
1515

16-
mountComponent: function (rootID, transaction, context) {
16+
mountComponent: function (
17+
transaction,
18+
nativeParent,
19+
nativeContainerInfo,
20+
context
21+
) {
1722
var props = this._currentElement.props;
1823
var layer = this.node;
1924
this.applyGradientProps({}, props);

lib/Group.js

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

88
var Group = createComponent('Group', LayerMixin, ContainerMixin, {
99

10-
mountComponent: function (rootID, transaction, context) {
10+
mountComponent: function (
11+
transaction,
12+
nativeParent,
13+
nativeContainerInfo,
14+
context
15+
) {
1116
var props = this._currentElement.props;
1217
var layer = this.node;
1318

lib/Image.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ var RawImage = createComponent('Image', LayerMixin, {
2020
layer.imageUrl = props.src;
2121
},
2222

23-
mountComponent: function (rootID, transaction, context) {
23+
mountComponent: function (
24+
transaction,
25+
nativeParent,
26+
nativeContainerInfo,
27+
context
28+
) {
2429
var props = this._currentElement.props;
2530
var layer = this.node;
2631
this.applyLayerProps({}, props);

lib/Layer.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ var LayerMixin = require('./LayerMixin');
55

66
var Layer = createComponent('Layer', LayerMixin, {
77

8-
mountComponent: function (rootID, transaction, context) {
8+
mountComponent: function (
9+
transaction,
10+
nativeParent,
11+
nativeContainerInfo,
12+
context
13+
) {
914
var props = this._currentElement.props;
1015
var layer = this.node;
1116
this.applyLayerProps({}, props);

lib/Text.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ var Text = createComponent('Text', LayerMixin, {
1919
layer.textAlign = style.textAlign;
2020
},
2121

22-
mountComponent: function (rootID, transaction, context) {
22+
mountComponent: function (
23+
transaction,
24+
nativeParent,
25+
nativeContainerInfo,
26+
context
27+
) {
2328
var props = this._currentElement.props;
2429
var layer = this.node;
2530
this.applyLayerProps({}, props);

0 commit comments

Comments
 (0)