Skip to content
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

Fix sheets to work nicely on ios 15 #5685

Merged
merged 6 commits into from
Oct 11, 2024
Merged

Conversation

haileyok
Copy link
Contributor

@haileyok haileyok commented Oct 10, 2024

RocketSim_Recording_iPhone_SE_.3rd_generation._4.7_2024-10-10_17.52.41.mp4

@arcalinea arcalinea temporarily deployed to hailey/ios-15-tweaks-sheet - social-app PR #5685 October 10, 2024 23:26 — with Render Destroyed
Copy link

github-actions bot commented Oct 10, 2024

The Pull Request introduced fingerprint changes against the base commit:

Fingerprint diff
[{"type":"dir","filePath":"modules/bottom-sheet/ios","reasons":["expoAutolinkingIos"],"hash":"a630f462f5c93a5d5f670dc95d79508d603fdb1e"}]

Generated by PR labeler 🤖

Copy link

Old size New size Diff
7.89 MB 7.89 MB 0 B (0.00%)

@arcalinea arcalinea temporarily deployed to hailey/ios-15-tweaks-sheet - social-app PR #5685 October 11, 2024 00:45 — with Render Destroyed
Comment on lines +73 to +84
let extraStyles
if (isIOS15 && this.state.viewHeight) {
const {viewHeight} = this.state
if (viewHeight < screenHeight / 2) {
extraStyles = {
height: viewHeight,
marginTop: screenHeight / 2 - viewHeight,
borderTopLeftRadius: cornerRadius,
borderTopRightRadius: cornerRadius,
}
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because we cannot actually use a custom detent on the native side on iOS 15, we can do some JS style hacks to make it appear the same.

@haileyok haileyok changed the title Don't allow preventExpansion on iOS 15 Fix sheets to work nicely on ios 15 Oct 11, 2024
@haileyok
Copy link
Contributor Author

cc @surfdude29 thanks for the info!!

@arcalinea arcalinea temporarily deployed to hailey/ios-15-tweaks-sheet - social-app PR #5685 October 11, 2024 00:55 — with Render Destroyed
@haileyok haileyok merged commit 88f326b into main Oct 11, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants