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

Cannot read property 'props' of null

Open nes123 opened this issue 3 years ago • 2 comments

I am getting the error in the following line of code:

TypeError node_modules/react-native-action-button/ActionButton.js:286

Any ideas what can go wrong?

nes123 avatar Mar 04 '21 11:03 nes123

Ok, same issue.

naamhaiabdullah avatar Dec 15 '21 11:12 naamhaiabdullah

You can't have items rendering with condition:

//wrong

{callcenter_phone ? (
        <ActionButton.Item
          onPress={handleOpenCall}
          buttonColor={childrenColor || theme.colors.primary}
        >
          <Icon name="phone" type="FontAwesome" />
        </ActionButton.Item>
) : null}

I recommend creating an array with items that really exists

RobertDS07 avatar Feb 18 '22 20:02 RobertDS07