diff --git a/ExRouter.js b/ExRouter.js index 5a1ebaf66..511f513c8 100644 --- a/ExRouter.js +++ b/ExRouter.js @@ -86,6 +86,16 @@ export class ExRouteAdapter { } renderLeftButton(navigator, index, state){ + if (this.route.props.onLeft && this.route.props.leftTitle) { + return ( this.route.props.onLeft({...this.route.props, ...this.props})} + style={[ExNavigator.Styles.barLeftButton, this.route.props.leftButtonStyle]}> + {this.route.props.leftTitle} + ); + } + if (index === 0 || index < navigator.getCurrentRoutes().length-1) { return null; }