react-native-action-button
react-native-action-button copied to clipboard
fix(ActionButton.js): improving filter to catch childrens of ActionButton
Improving filter because if children is rendering with a condition ex.:
{callcenter_phone ? (
<ActionButton.Item
onPress={handleOpenCall}
buttonColor={childrenColor || theme.colors.primary}
>
<Icon name="phone" type="FontAwesome" />
</ActionButton.Item>
) : null}
It pass in filter because typeof null is 'object'
This PR closes issue 366