fix(ios): segmented bar nativeView check (#10023)

This commit is contained in:
Dimitris-Rafail Katsampas
2022-09-13 05:18:22 +03:00
committed by Nathan Walker
parent 59fb3d9457
commit 3ce5362a04

View File

@ -8,7 +8,7 @@ export * from './segmented-bar-common';
export class SegmentedBarItem extends SegmentedBarItemBase {
public _update() {
const parent = <SegmentedBar>this.parent;
if (parent) {
if (parent?.ios) {
const tabIndex = parent.items.indexOf(this);
let title = this.title;
title = title === null || title === undefined ? '' : title;