react-native-ios-kit
react-native-ios-kit copied to clipboard
RowItem - fix "Text strings must be rendered within a <Text> component" error when subtitle is empty string
Summary
In RowItem, condition for displaying subtitle causes "Text strings must be rendered within a Text component" Error when subtitle is empty string. This is because the condition uses subtitle itself and react native renders empty string when subtitle is empty. I fixed the condition to use !!subtitle instead of subtitle.