Skip to content

Commit

Permalink
update options on transition end
Browse files Browse the repository at this point in the history
  • Loading branch information
TMisiukiewicz committed Oct 24, 2023
1 parent 57bf8b6 commit f7d1900
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/pages/SearchPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,13 @@ class SearchPage extends Component {
this.searchRendered = this.searchRendered.bind(this);
this.selectReport = this.selectReport.bind(this);
this.onChangeText = this.onChangeText.bind(this);
this.updateOptions = this.updateOptions.bind(this);
this.debouncedUpdateOptions = _.debounce(this.updateOptions.bind(this), 75);

const {recentReports, personalDetails, userToInvite} = OptionsListUtils.getSearchOptions(props.reports, props.personalDetails, '', props.betas);

this.state = {
searchValue: '',
recentReports,
personalDetails,
userToInvite,
recentReports: {},
personalDetails: {},
userToInvite: {},
};
}

Expand Down Expand Up @@ -186,6 +184,7 @@ class SearchPage extends Component {
<ScreenWrapper
includeSafeAreaPaddingBottom={false}
testID={SearchPage.displayName}
onEntryTransitionEnd={this.updateOptions}
>
{({didScreenTransitionEnd, safeAreaPaddingBottomStyle}) => (
<>
Expand Down

0 comments on commit f7d1900

Please sign in to comment.