js: Add _ref property in view,store ref, for combine action in mobx
This commit is contained in:
@@ -425,6 +425,7 @@ var View = /** @class */ (function () {
|
||||
Object.defineProperty(View.prototype, "ref", {
|
||||
set: function (ref) {
|
||||
ref.current = this;
|
||||
this._ref = ref;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
|
@@ -345,6 +345,7 @@ class View {
|
||||
}
|
||||
set ref(ref) {
|
||||
ref.current = this;
|
||||
this._ref = ref;
|
||||
}
|
||||
doAnimation(context, animation) {
|
||||
return this.nativeChannel(context, "doAnimation")(animation.toModel()).then((args) => {
|
||||
|
@@ -1875,6 +1875,7 @@ class View {
|
||||
}
|
||||
set ref(ref) {
|
||||
ref.current = this;
|
||||
this._ref = ref;
|
||||
}
|
||||
doAnimation(context, animation) {
|
||||
return this.nativeChannel(context, "doAnimation")(animation.toModel()).then((args) => {
|
||||
|
Reference in New Issue
Block a user