Skip to content

Error while wrapping TextInput#88

Description

@IzmaIs
<Shadow
    distance={10}
    style={{borderRadius: 16}}
    startColor="#dc2626"
    disabled={!errors?.ad?.message}
>
     <FormField
          name="ad"
          control={control}
          rules={{ validate: required }}
      >
         <TextInput
               multiline
               textAlign="center"
               style={{fontSize: 24}}
               maxLength={2000}
               className="bg-white p-3 w-full max-h-[300] rounded-2xl"
               placeholder={`${i18n.t("adPlaceholder")}`}
          />
      </FormField>
</Shadow>

example of use, in FormField there is a RHF controller, the error is that when changing the validation error, the focus leaves the field

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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