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

Function constructor

lib/Jiro.js:28–38  ·  view source on GitHub ↗
(props, context)

Source from the content-addressed store, hash-verified

26 };
27
28 constructor(props, context) {
29 super(props, context);
30
31 const animationValue = props.value ? 1 : 0;
32 this.state = {
33 value: props.value,
34 borderPositionAnim: new Animated.Value(animationValue),
35 borderHeightAnim: new Animated.Value(animationValue),
36 labelPositionAnim: new Animated.Value(animationValue),
37 };
38 }
39
40 _toggle(isActive) {
41 const animationValue = isActive ? 1 : 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected