Skip to content

hhristov/recycle native view android #3885

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 28, 2017

Conversation

hshristov
Copy link
Contributor

Rename:
_createNativeView to createNativeView;
_initNativeView to initNativeView
_disposeNativeView to disposeNativeView
_resetNativeView to resetNativeView

this.nativeView = this._iosView = (<any>this)._nativeView;
this.createNativeView();
if (!currentNativeView) {
console.log(`${this.typeName} doesnt have NativeView !!!!! =================`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

console.log

}
}

[maxDateProperty.getDefault](): Date {
return this.android.getMaxDate();
return this.nativeView.getMaxDate();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Return type should be number

}
}

[maxDateProperty.getDefault](): Date {
return this.android.getMaxDate();
return this.nativeView.getMaxDate();
}
[maxDateProperty.setNative](value: Date) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

value type should be Date | number

}

[minDateProperty.getDefault](): Date {
return this.android.getMinDate();
return this.nativeView.getMinDate();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Return type should be number

}

// public _resetNativeView(force?: boolean) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete?


public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void {
var nativeView = this._nativeView;
var nativeView = this._ios;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.nativeView

}

const validTime = getValidTime(timePicker, hour, minute);
hourProperty.nativeValueChange(timePicker, validTime.hour);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete those - not needed

Hristo Hristov added 4 commits March 28, 2017 18:08
_createNativeView to createNativeView;
_initNativeView to initNativeView
_disposeNativeView to disposeNativeView
_resetNativeView to resetNativeView
createNativeView will set iOS nativeView if it is null/undefined
@hshristov hshristov force-pushed the hhristov/recycle-native-view-android branch from d2ace2f to e6250e7 Compare March 28, 2017 15:09
@vchimev
Copy link
Contributor

vchimev commented Mar 28, 2017

widgets

@vchimev
Copy link
Contributor

vchimev commented Mar 28, 2017

widgets-uitests-android

@vchimev
Copy link
Contributor

vchimev commented Mar 28, 2017

widgets-uitests-ios

@vchimev
Copy link
Contributor

vchimev commented Mar 28, 2017

@hshristov,

there are some failures for iOS that require to look into them.

@vchimev vchimev merged commit 86b9be3 into master Mar 28, 2017
@hshristov hshristov deleted the hhristov/recycle-native-view-android branch March 30, 2017 14:32
@lock
Copy link

lock bot commented Aug 27, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants