react-native-floating-label-input
react-native-floating-label-input copied to clipboard
showCountdown to be shown only when field in focus
Hey,
I think it makes sense to either make showCountdown depend whether the field is focused or export the isFocusedState. Something similar to this would be great:
{showCountdown && maxLength && isFocusedState && (
<Text style={countdown}>
{maxLength - (value ? value.length : 0)} {countdownLabel}
</Text>
)}