Skip to content

Autofill and Auto-detect not working #101

Open
@IshmeetSingh06

Description

@IshmeetSingh06

Describe the bug
I have implemented the input component from the package but is not autofilling on both IOS and android, and autodetect otp is not working on android

 <OtpInput
            autoFocus
            blurOnFilled
            numberOfDigits={otpLength}
            focusStickBlinkingDuration={500}
            focusColor={theme.primary}
            type="numeric"
            onTextChange={onChange}
            onFilled={onProceed}
            textInputProps={{
                keyboardType: "number-pad",
                accessibilityLabel: "One-Time Password",
                autoComplete: "sms-otp",
                textContentType: "oneTimeCode",
            }}
            textProps={{
                accessibilityRole: "text",
                accessibilityLabel: "OTP digit",
                allowFontScaling: false,
                style: {
                    fontSize: theme["text-body-1-regular-font-size"],
                    fontFamily: theme["text-body-1-regular-font-family"],
                    lineHeight: theme["text-body-1-regular-line-height"],
                    letterSpacing: theme["text-body-1-regular-letter-spacing"],
                },
            }}
            theme={{
                containerStyle: styles.container,
                pinCodeContainerStyle: {
                    ...styles.pinCodeContainer,
                    borderColor: theme.border_Secondary,
                    backgroundColor: theme.background_Primary,
                },
                filledPinCodeContainerStyle: {
                    borderColor: hasError ? theme.negative : theme.primary,
                },
                focusStickStyle: styles.focusStick,
            }}
        />

Expected behavior
It should auto detect and autofill the OTP input

Environment (please complete the following information):

  • OS: Android/IOS
  • Device OS: Android/IOS
  • Library version: 1.8.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions