Skip to content

Commit

Permalink
Merge pull request Expensify#15081 from narefyev91/autofill-from-sms
Browse files Browse the repository at this point in the history
Autofill code from SMS magic code
  • Loading branch information
mountiny authored Feb 13, 2023
2 parents 39d9b66 + a7bb41b commit d02a3cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/signin/ValidateCodeForm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import {
Platform,
TouchableOpacity, View,
} from 'react-native';
import PropTypes from 'prop-types';
Expand Down Expand Up @@ -191,6 +192,8 @@ class ValidateCodeForm extends React.Component {
) : (
<View style={[styles.mv3]}>
<TextInput
autoComplete={Platform.select({android: 'sms-otp', web: 'one-time-code', ios: 'one-time-code'})}
textContentType="oneTimeCode"
ref={el => this.inputValidateCode = el}
label={this.props.translate('common.magicCode')}
nativeID="validateCode"
Expand Down

0 comments on commit d02a3cb

Please sign in to comment.