react-native-action-button
react-native-action-button copied to clipboard
Cannot read property 'props' of null
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?
Ok, same issue.
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