{
getChildContext(): EpicContext {
return {
hasTabbar: this.props.hasOwnProperty('tabbar'),
};
}
static childContextTypes: {} = {
hasTabbar: PropTypes.bool,
};
render() {
const { className, activeStory, tabbar, children, platform, ...restProps } = this.props;
return (
{React.Children.toArray(children).find((item: React.ReactElement) => item.props.id === activeStory)}
{tabbar}
);
}
}
export default withPlatform(Epic);