{platform === IOS &&
{header && {header}
}
{text && {text}
}
}
{Children.toArray(children).map((child: React.ReactElement, index: number, arr: []) =>
child && React.cloneElement(child, {
onClick: this.onItemClick(child.props.onClick, child.props.autoclose),
style: index === arr.length - 1 && isNumeric(insets.bottom) ? { marginBottom: insets.bottom } : null,
isLast: this.isItemLast(index),
}),
)}