Skip to content

Commit

Permalink
Revert other pages
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetlath committed Feb 28, 2024
1 parent aaf9d4c commit 5c68d8b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
1 change: 1 addition & 0 deletions src/components/OptionsSelector/index.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const OptionsSelector = forwardRef((props, ref) => (
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
ref={ref}
shouldDelayFocus
/>
));

Expand Down
1 change: 1 addition & 0 deletions src/pages/NewChatPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ function NewChatPage({betas, isGroupChat, personalDetails, reports, isSearchingF
textInputLabel={translate('optionsSelector.nameEmailOrPhoneNumber')}
safeAreaPaddingBottomStyle={safeAreaPaddingBottomStyle}
isLoadingNewOptions={isSearchingForReports}
autoFocus={false}
/>
</View>
{isSmallScreenWidth && <OfflineIndicator />}
Expand Down
14 changes: 0 additions & 14 deletions tests/perf-test/OptionsSelector.perf-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,6 @@ import _ from 'underscore';
import OptionsSelector from '@src/components/OptionsSelector';
import variables from '@src/styles/variables';

jest.mock('@react-navigation/native', () => {
const actualNav = jest.requireActual('@react-navigation/native');
return {
...actualNav,
useNavigation: () => ({
navigate: jest.fn(),
addListener: () => jest.fn(),
}),
useIsFocused: () => ({
navigate: jest.fn(),
}),
};
});

jest.mock('../../src/components/withLocalize', () => (Component) => {
function WrappedComponent(props) {
return (
Expand Down

0 comments on commit 5c68d8b

Please sign in to comment.