Switch tests for ios.

This commit is contained in:
Nedyalko Nikolov
2016-12-30 11:41:30 +02:00
parent 49da159836
commit f4535b03be

View File

@ -42,6 +42,14 @@ export class Switch extends SwitchBase {
return this._ios;
}
get _nativeView(): UISwitch {
return this._ios;
}
get nativeView(): UISwitch {
return this._ios;
}
public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void {
// It can't be anything different from 51x31
let nativeSize = this._nativeView.sizeThatFits(CGSizeMake(0, 0));