-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto height wrong on Ipad #97
Comments
Ah, might be due to this code: react-native-true-sheet/ios/TrueSheetView.swift Lines 195 to 207 in d73a397
|
Thanks for the quick answer ! Is it something easily fixable in the next release ? |
The biggest pain I have right now with react-native-true-sheet are:
|
Other found issue: When rnts is used with a ScrollView inside and auto height, only the first rendered height is used. Upcoming height changes inside the scrollView are ignored which makes in my case a small Modal that scrolls a lot to display the content. Here is the code that reproduces the issue: const App = () => {
const ready = useDelayed(true, 1000);
const scrollRef = useRef();
return <TrueSheet
dimmed={true}
initialIndexAnimated={true}
initialIndex={0}
sizes={["auto"]}
grabber={false}
scrollRef={scrollRef}
>
<ScrollView ref={scrollRef}>
<View style={{ background: 'blue', height: 50 }} />
{ready && <View style={{ background: 'red', height: 60 }} />}
</ScrollView>
</TrueSheet>
} I hope it helps ! |
Hi, great work with this package 👏
I face an issue with auto height on ipad. I tried to remove all the logic and it becomes clear that the behavior differs from iphone.
Here is the code related to the screenshots bellow:
As you can see, auto height works great on iphone (there is no safe area on purpose) but on ipad the content is cropped.
If I try with a larger height, same result the content is cropped at the bottom.
Actually it's same with a scrollview too, it always makes it scroll a bit.
I would love some help from on this point, thanks !
The text was updated successfully, but these errors were encountered: