Skip to content

showCountdown to be shown only when field in focus #165

@sherikovic

Description

@sherikovic

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>
)}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions