Skip to content

Commit

Permalink
make the popover menu scrollable
Browse files Browse the repository at this point in the history
  • Loading branch information
lakchote committed Sep 13, 2024
1 parent 36936b6 commit c04e7a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/PopoverMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import lodashIsEqual from 'lodash/isEqual';
import type {RefObject} from 'react';
import React, {useLayoutEffect, useState} from 'react';
import {StyleSheet, View} from 'react-native';
import {ScrollView, StyleSheet, View} from 'react-native';
import type {ModalProps} from 'react-native-modal';
import useArrowKeyFocusManager from '@hooks/useArrowKeyFocusManager';
import useKeyboardShortcut from '@hooks/useKeyboardShortcut';
Expand Down Expand Up @@ -254,7 +254,7 @@ function PopoverMenu({
restoreFocusType={restoreFocusType}
>
<FocusTrapForModal active={isVisible}>
<View style={isSmallScreenWidth ? {} : styles.createMenuContainer}>
<ScrollView style={isSmallScreenWidth ? {} : styles.createMenuContainer}>
{renderHeaderText()}
{enteredSubMenuIndexes.length > 0 && renderBackButtonItem()}
{currentMenuItems.map((item, menuIndex) => (
Expand Down Expand Up @@ -302,7 +302,7 @@ function PopoverMenu({
badgeText={item.badgeText}
/>
))}
</View>
</ScrollView>
</FocusTrapForModal>
</PopoverWithMeasuredContent>
);
Expand Down

0 comments on commit c04e7a1

Please sign in to comment.