(props, context)
| 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; |
nothing calls this directly
no outgoing calls
no test coverage detected