Skip to content

CONTENT_HEIGHT but with percentage max? #860

Answered by ftzi
ftzi asked this question in Q&A
Discussion options

You must be logged in to vote

I was having many issues with the dynamicSnapPoints, like the scroll in the bottomSheet wasn't working and I couldn't have my free space on top.

This is how I done:

import type React from 'react';
import { useCallback, useMemo, useState } from 'react';
import type { LayoutChangeEvent } from 'react-native';
import { StyleSheet, useWindowDimensions, View } from 'react-native';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import type { BottomSheetProps as BottomSheetPropOriginal } from '@gorhom/bottom-sheet';
import BottomSheetOriginal, {
  BottomSheetBackdrop, BottomSheetScrollView,
} from '@gorhom/bottom-sheet';
import { LinearGradient } from 'expo-linear-gradient';

/…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ftzi
Comment options

Answer selected by ftzi
Comment options

You must be logged in to vote
1 reply
@ftzi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants