Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions src/components/Onfido/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,9 @@
height: 92% !important;
}
}

.onfido-sdk-ui-NavigationBar-back {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

if you could add the explanation comment why we are hiding this button

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

/* This keeps onfido back button hidden since there is already a back button in the top header which
programatically clicks onfido button. */
visibility: hidden;
}
12 changes: 11 additions & 1 deletion src/pages/ReimbursementAccount/RequestorOnfidoStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ class RequestorOnfidoStep extends React.Component {
constructor(props) {
super(props);
this.submit = this.submit.bind(this);
this.goBack = this.goBack.bind(this);
}

goBack() {
const onfidoBack = document.querySelector('.onfido-sdk-ui-NavigationBar-back');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This caused deploy blocker - #24343.
document doesn't exist on native.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Dang, I didn't encountered this during my testing on offline...
@vipin87 Can you rise the follow-up for the issue with proper platform handling?

if (onfidoBack && !onfidoBack.classList.contains('onfido-sdk-ui-NavigationBar-disabled')) {
onfidoBack.click();
} else {
this.props.onBackButtonPress();
}
}

submit(onfidoData) {
Expand All @@ -50,7 +60,7 @@ class RequestorOnfidoStep extends React.Component {
stepCounter={{step: 3, total: 5}}
shouldShowGetAssistanceButton
guidesCallTaskID={CONST.GUIDES_CALL_TASK_IDS.WORKSPACE_BANK_ACCOUNT}
onBackButtonPress={this.props.onBackButtonPress}
onBackButtonPress={this.goBack}
/>
<FullPageOfflineBlockingView>
<ScrollView contentContainerStyle={styles.flex1}>
Expand Down