Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'props' of null #366

Open
nes123 opened this issue Mar 4, 2021 · 2 comments · Fixed by chakrahq/react-native-action-button#1
Open

Cannot read property 'props' of null #366

nes123 opened this issue Mar 4, 2021 · 2 comments · Fixed by chakrahq/react-native-action-button#1

Comments

@nes123
Copy link

nes123 commented Mar 4, 2021

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?

@naamhaiabdullah
Copy link

naamhaiabdullah commented Dec 15, 2021

Ok, same issue.

@RobertDS07
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants