Skip to content

Call native setters once when a page is instantiated #4227

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 1 commit into from
Jun 8, 2017

Conversation

PanayotCankov
Copy link
Contributor

No description provided.

@@ -36,7 +36,7 @@ export class Slider extends SliderBase {

constructor() {
super();
this.nativeView = this._ios = UISlider.new();
this.setNativeView(this._ios = UISlider.new());
Copy link
Contributor

Choose a reason for hiding this comment

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

could be this.nativeView = ...

@@ -83,4 +83,7 @@ export class Switch extends SwitchBase {
[backgroundInternalProperty.setNative](value: any) {
Copy link
Contributor

Choose a reason for hiding this comment

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

It will be hard for developers to not apply backgroundColor

@PanayotCankov PanayotCankov force-pushed the native-set-once-on-launch branch from 1da79fc to 4eef759 Compare June 7, 2017 11:09
@PanayotCankov
Copy link
Contributor Author

run uitests

Call native setters once when a page is instantiated.

Fix background not being reset, Label's background is now set to background, not layer

Make the nativeView field instead of property for performance reasons
@PanayotCankov PanayotCankov force-pushed the native-set-once-on-launch branch from 4eef759 to 1f521f3 Compare June 7, 2017 12:32
@PanayotCankov
Copy link
Contributor Author

run uitests

1 similar comment
@SvetoslavTsenov
Copy link
Contributor

run uitests

@PanayotCankov PanayotCankov merged commit 014e7a8 into master Jun 8, 2017
@PanayotCankov PanayotCankov deleted the native-set-once-on-launch branch June 8, 2017 06:51
@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