react-native-action-button icon indicating copy to clipboard operation
react-native-action-button copied to clipboard

fix(ActionButton.js): improving filter to catch childrens of ActionButton

Open RobertDS07 opened this issue 2 years ago • 0 comments

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

RobertDS07 avatar Feb 18 '22 21:02 RobertDS07