fix(back-button): empty text is a valid value

This commit is contained in:
Manu Mtz.-Almeida
2018-03-22 18:41:22 +01:00
parent 02173484eb
commit eb0ff2f09d

View File

@ -55,7 +55,7 @@ export class BackButton {
render() {
const backButtonIcon = this.icon || this.config.get('backButtonIcon', 'arrow-back');
const backButtonText = this.text || this.config.get('backButtonText', this.mode === 'ios' ? 'Back' : '');
const backButtonText = this.text != null ? this.text : this.config.get('backButtonText', this.mode === 'ios' ? 'Back' : '');
return (
<button