(parent?: LayoutBase)
| 283 | } |
| 284 | |
| 285 | function setup(parent?: LayoutBase): Label { |
| 286 | let lbl = new Label(); |
| 287 | if (parent) { |
| 288 | parent.addChild(lbl); |
| 289 | } else { |
| 290 | (<any>lbl)._ios = (<any>lbl).nativeView = undefined; |
| 291 | } |
| 292 | |
| 293 | return lbl; |
| 294 | } |
| 295 | |
| 296 | function time(): number { |
| 297 | if (global.android) { |