@hoddy-ui/next 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +0 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1513,7 +1513,6 @@ var TextField2 = ({
|
|
|
1513
1513
|
const colors2 = useColors();
|
|
1514
1514
|
const [focused, _setFocused] = useState7(false);
|
|
1515
1515
|
const [showPassword, setShowPassword] = useState7(false);
|
|
1516
|
-
const labelAnim = useRef(new Animated.Value(0)).current;
|
|
1517
1516
|
const height = moderateScale3(
|
|
1518
1517
|
props.multiline ? 50 + (props.numberOfLines || 1) * 18 : 50
|
|
1519
1518
|
);
|
|
@@ -1522,21 +1521,6 @@ var TextField2 = ({
|
|
|
1522
1521
|
_setFocused(value2);
|
|
1523
1522
|
});
|
|
1524
1523
|
};
|
|
1525
|
-
React15.useEffect(() => {
|
|
1526
|
-
if (focused || value) {
|
|
1527
|
-
Animated.timing(labelAnim, {
|
|
1528
|
-
toValue: verticalScale2(5),
|
|
1529
|
-
duration: 300,
|
|
1530
|
-
useNativeDriver: false
|
|
1531
|
-
}).start();
|
|
1532
|
-
} else {
|
|
1533
|
-
Animated.timing(labelAnim, {
|
|
1534
|
-
toValue: height / moderateScale3(3),
|
|
1535
|
-
duration: 300,
|
|
1536
|
-
useNativeDriver: false
|
|
1537
|
-
}).start();
|
|
1538
|
-
}
|
|
1539
|
-
}, [focused, value]);
|
|
1540
1524
|
const styles2 = ScaledSheet12.create({
|
|
1541
1525
|
root: {
|
|
1542
1526
|
marginBottom: gutterBottom + "@vs",
|