You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found out that when setting a component as navigationOptions.title, react-navigation tries to use it as a text for the back button of the next screen. Hoverer, if the component is not serializable, react will throw several errors like:
Malformed calls from JS: field sizes are different.
# and
TypeError: Converting circular structure to JSON
The solution is setting navigationOptions.headerBackTitle, so explicitly providing a string to be used on the back button. However the error makes this simple fix hard to spot.
Expected Behavior
I think react-navigation should check whenever navigationOptions.title is a string, and if not use the same headerTruncatedBackTitledefault text.
Environment
software
version
react-navigation
1.0.0-beta.21
react-native
0.50.3
node
8.4.0
The text was updated successfully, but these errors were encountered:
I've found out that when setting a component as
navigationOptions.title
,react-navigation
tries to use it as a text for the back button of the next screen. Hoverer, if the component is not serializable, react will throw several errors like:Malformed calls from JS: field sizes are different. # and TypeError: Converting circular structure to JSON
The code could be as dummy as:
The solution is setting
navigationOptions.headerBackTitle
, so explicitly providing a string to be used on the back button. However the error makes this simple fix hard to spot.Expected Behavior
I think
react-navigation
should check whenevernavigationOptions.title
is astring
, and if not use the sameheaderTruncatedBackTitle
default text.Environment
The text was updated successfully, but these errors were encountered: