Skip to content

Commit

Permalink
Put viewForwardedRef in utils file after merging main
Browse files Browse the repository at this point in the history
  • Loading branch information
VickyStash committed Nov 24, 2023
1 parent b0ffed4 commit 1292c40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import PressableWithFeedback from '@components/Pressable/PressableWithFeedback';
import * as StyleUtils from '@styles/StyleUtils';
import useThemeStyles from '@styles/useThemeStyles';
import CONST from '@src/CONST';
import {viewForwardedRef} from '@src/types/utils/viewRef';
import viewForwardedRef from '@src/types/utils/viewForwardedRef';
import type {AutoCompleteSuggestionsProps, RenderSuggestionMenuItemProps} from './types';

const measureHeightOfSuggestionRows = (numRows: number, isSuggestionPickerLarge: boolean): number => {
Expand Down
6 changes: 6 additions & 0 deletions src/types/utils/viewForwardedRef.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import {ForwardedRef} from 'react';
import {View} from 'react-native';

const viewForwardedRef = (ref: ForwardedRef<View | HTMLDivElement>) => ref as ForwardedRef<View>;

export default viewForwardedRef;

0 comments on commit 1292c40

Please sign in to comment.