Skip to content

Error while wrapping TextInput #88

@IzmaIs

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

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