Skip to content

Warining:Failed propType: Invalid props.style key 'display' supplied to View #17130

@loyoliteabid

Description

@loyoliteabid

I used style display property in react native app and it gives above error.
Warining:Failed propType: Invalid props.style key 'display' supplied to View

const styles = { hideRmoveButton: { display:'none' }, showRemoveButton: { height: 20 } };

<Button transparent style={okToRemove? styles.showRemoveButton : styles.hideRmoveButton} > <Icon name='trash' style={{color:'#999'}}/> </Button>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions