Skip to content

Commit

Permalink
fix: enable scroll when keyboard is toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremybarbet committed Feb 11, 2020
1 parent 9a35b0d commit c7a7dbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ export class Modalize<FlatListItem = any, SectionListItem = any> extends React.C

private renderContent = (): React.ReactNode => {
const { children, scrollViewProps, flatListProps, sectionListProps } = this.props;
const { enableBounces, disableScroll } = this.state;
const { enableBounces, disableScroll, keyboardToggle } = this.state;
const keyboardDismissMode = isIos ? 'interactive' : 'on-drag';

const opts = {
Expand All @@ -610,7 +610,7 @@ export class Modalize<FlatListItem = any, SectionListItem = any> extends React.C
),
scrollEventThrottle: 16,
onLayout: this.onContentViewLayout,
scrollEnabled: !disableScroll,
scrollEnabled: keyboardToggle || !disableScroll,
keyboardDismissMode,
};

Expand Down

0 comments on commit c7a7dbe

Please sign in to comment.