anchorchat / anchor-ui-native

https://anchorchat.github.io/anchor-ui-native/
MIT License
2 stars 0 forks source link

[ListItem, Text] Android crashes when there's an svg within text #189

Open IanCStewart opened 5 years ago

IanCStewart commented 5 years ago

For example the following code crashes android devices:

<ListItem
    primaryText="Henk de Freeze"
    secondaryText={(
        <View>
            <IconHand />
            <Text>online</Text>
        </View>
    )}
/>
IanCStewart commented 5 years ago

I thought of type checking the prop being passed to decide if text would be rendered. This leaded into no secondaryText at all since most of the texts were ReactComponents which did need Text around it.