Warining:Failed propType: Invalid props.style key 'display' supplied to View #17130
Labels
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
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>
The text was updated successfully, but these errors were encountered: