Skip to content

Commit 5e49dda

Browse files
committed
refactor: refactor Select
1 parent c7a397e commit 5e49dda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ui/select.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ const selectTv = tv({
5656
},
5757
});
5858

59+
const List = Platform.OS === 'web' ? FlashList : BottomSheetFlatList;
60+
5961
export type Option = { label: string; value: string | number };
6062

6163
type OptionsProps = {
@@ -76,8 +78,6 @@ export const Options = React.forwardRef<BottomSheetModal, OptionsProps>(
7678
const { colorScheme } = useColorScheme();
7779
const isDark = colorScheme === 'dark';
7880

79-
const List = Platform.OS === 'web' ? FlashList : BottomSheetFlatList;
80-
8181
const renderSelectItem = React.useCallback(
8282
({ item }: { item: Option }) => (
8383
<Option

0 commit comments

Comments
 (0)