Rúben Carreira
Rúben Carreira

Reputation: 1

How to automatically get the one time code received in SMS to be pasted in react-native text input?

I have this code, and this sms formats, but the code never appears at the keyboard suggestions neither is on the clipboard. Can you help me or suggesting something else?

I am expecting that the SMS code appear on the keyboard suggestions.

import { TextInput } from "react-native";

<TextInput autoFocus textContentType="oneTimeCode" autoComplete="sms-otp" keyboardType="number-pad" />

I tried using multiple sms formats, like:

Your access code:[code]

<#> Your access code:[code]

Your access code is: [code]

@App #[code]

Upvotes: 0

Views: 49

Answers (0)

Related Questions