MCPcopy
hub / github.com/halilb/react-native-textinput-effects / _toggle

Method _toggle

lib/BaseInput.js:103–112  ·  view source on GitHub ↗
(isActive)

Source from the content-addressed store, hash-verified

101 }
102
103 _toggle(isActive) {
104 const { animationDuration, easing, useNativeDriver } = this.props;
105 this.isActive = isActive;
106 Animated.timing(this.state.focusedAnim, {
107 toValue: isActive ? 1 : 0,
108 duration: animationDuration,
109 easing,
110 useNativeDriver: useNativeDriver || false,
111 }).start();
112 }
113
114 // public methods
115

Callers 3

componentDidUpdateMethod · 0.95
_onBlurMethod · 0.95
_onFocusMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected