Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion components/ConfirmationCodeInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default class ConfirmationCodeInput extends Component {
codeInputStyle: TextInput.propTypes.style,
containerStyle: viewPropTypes.style,
onFulfill: PropTypes.func,
rtl: PropTypes.bool,
};

static defaultProps = {
Expand All @@ -36,6 +37,7 @@ export default class ConfirmationCodeInput extends Component {
space: 8,
compareWithCode: '',
ignoreCase: false

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need comma

rtl: false,
};

constructor(props) {
Expand Down Expand Up @@ -239,6 +241,7 @@ export default class ConfirmationCodeInput extends Component {
className,
size,
activeColor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need comma

rtl,
} = this.props;

const initialCodeInputStyle = {
Expand All @@ -248,7 +251,7 @@ export default class ConfirmationCodeInput extends Component {

let codeInputs = [];
for (let i = 0; i < codeLength; i++) {
const id = i;
const id = rtl ? codeLength - i - 1 : i;
codeInputs.push(
<TextInput
key={id}
Expand Down