Skip to content

Cannot read property 'props' of null #366

Open
chakrahq/react-native-action-button
#1

Description

@nes123

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?

Activity

  1. choudharyabdullah commented on Dec 15, 2021

    @choudharyabdullah

    Ok, same issue.

  2. RobertDS07 commented on Feb 18, 2022

    @RobertDS07

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions