diff --git a/ExRouter.js b/ExRouter.js index 4bc9541ff..9f425e9cd 100644 --- a/ExRouter.js +++ b/ExRouter.js @@ -45,6 +45,9 @@ export class ExRouteAdapter { if (this.route.props.renderLeftButton){ this.renderLeftButton = this.route.props.renderLeftButton.bind(this.route); } + if (this.route.props.renderBackButton){ + this.renderBackButton = this.route.props.renderBackButton.bind(this.route); + } } configureScene() { @@ -126,6 +129,7 @@ export class ExRouteAdapter { ExNavigatorStyles.barButtonText, ExNavigatorStyles.barBackButtonText, navigator.props.barButtonTextStyle, + this.route.props.leftButtonTextStyle, ]} > {title} @@ -141,6 +145,7 @@ export class ExRouteAdapter { style={[ ExNavigatorStyles.barButtonIcon, navigator.props.barButtonIconStyle, + this.route.props.barButtonIconStyle, ]} /> {buttonText} @@ -387,4 +392,3 @@ var styles = StyleSheet.create({ }, }); - diff --git a/package.json b/package.json index 9d8e2595c..25691af1c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-router-flux", - "version": "2.3.11", + "version": "2.3.12", "description": "React Native Router using Flux architecture", "repository": { "type": "git",