prevent error `RawText "" must be wrapped in an explicit <Text> compo… (#2415)

this react-native error has no adequate stack, and i waste 4 hours for juggling pieces, until i get the idea to trace error by myself and finded this bug
This commit is contained in:
Murad R
2017-11-13 12:16:50 +02:00
parent 0b0e139ea5
commit 715e9645ae

View File

@@ -91,7 +91,7 @@ class HeaderBackButton extends React.PureComponent<Props, State> {
source={asset}
/>
{Platform.OS === 'ios' &&
title && (
typeof backButtonTitle === 'string' && (
<Text
onLayout={this._onTextLayout}
style={[