react-native-ios-kit icon indicating copy to clipboard operation
react-native-ios-kit copied to clipboard

RowItem - fix "Text strings must be rendered within a <Text> component" error when subtitle is empty string

Open gorogoroumaru opened this issue 3 years ago • 0 comments

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.

gorogoroumaru avatar Aug 13 '22 08:08 gorogoroumaru