Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidUpdate(prevProps) {
if (prevProps.selected != this.props.selected)
mediumFade()
}
componentDidUpdate(prevProps, prevState) {
if ((prevState.emails != this.state.emails) || (!prevState.email != !this.state.email))
mediumFade()
if (prevProps.status != this.props.status)
switch(this.props.status) {
case 'error':
Alert.alert(t.s('sendInvites')+' '+t.s('server').toLowerCase())
break
case 'done':
this.setState({ emails: [] })
Alert.alert(t.s('invitesSendTo')+' '+this.props.sendTo.join(', '))
break
}
}
componentDidUpdate(prevProps) {
if (this.props.search != prevProps.search)
mediumFade()
}
componentDidUpdate(prevProps) {
//animation
if (prevProps.loading != this.props.loading)
mediumFade();
}