How to use the co/style/animation.mediumFade function in co

To help you get started, we’ve selected a few co examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github raindropio / mobile / src / screens / tags / picker / index.js View on Github external
componentDidUpdate(prevProps) {
		if (prevProps.selected != this.props.selected)
			mediumFade()
	}
github raindropio / mobile / src / screens / collection / sharing / add / view.js View on Github external
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
			}
	}
github raindropio / mobile / src / screens / bookmarks / search / index.js View on Github external
componentDidUpdate(prevProps) {
		if (this.props.search != prevProps.search)
			mediumFade()
	}
github raindropio / mobile / src / screens / settings / pro / buy / form.js View on Github external
componentDidUpdate(prevProps) {
		//animation
		if (prevProps.loading != this.props.loading)
			mediumFade();
	}