-
-
Notifications
You must be signed in to change notification settings - Fork 982
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
Make osx example utilise the common example app #3055
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope it won't have much conflicts with #2919 😅
I hope there won't be any, Regardless, this PR is still WIP, and only works on my end due to some modifications to |
…s of transitioning
As of now, the common examples are working on |
(cherry picked from commit 72fd9dd)
Removed chevrons in 61455cf, couldn't find a way to properly load their custom font.
All other known bugs have been resolved by now as far as i know. Please let me know if there're any other changes you'd like to see, or if it's ok to merge this PR. |
…in-primary-example
change runner version from latest -> 15 for more predictability
…hub.com/software-mansion/react-native-gesture-handler into @latekvo/support-osx-in-primary-example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, few things I noticed:
Draggable
example using the old API doesn't work, I don't recall whether it did at some point (cc @m-bert), but it might be worth looking intoPressable
doesn't work, which is not ideal
Bot those can be addressed in follow-ups, as this PR has been going on for quite some time
export const HEADER_HEIGHT = | ||
Platform.OS === 'web' ? 64 : Platform.OS === 'macos' ? 128 : 192; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make the header the same as on web? Images seem to always be stretched, it may make sense to set explicit sizes for them instead of relying on the platform to properly contain them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I'll open a separate PR for it to avoid cluttering this one any further.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To sum up, I think we can merge this as-is currently (but please, use Hermes) and then create follow-up issues for:
- header looking weird on macOS
- Draggable example not working (for other reasons than expected)
- Pressables not working on macOS
- app being stuck on loading bundle screen
and keep working on these
(use Maintainer issue
label to stop bot from bothering you).
…in-primary-example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remember to address things mentioned by @j-piasecki in follow-ups 😅
## Description There are 2 `Pressable` entries, likely as a result of merge conflicts which occurred between these two PRs: [Update examples](https://github.com/software-mansion/react-native-gesture-handler/pull/2919/files) and [Make osx example utilise the common example app](#3055)
Description
This PR makes the MacOS example utilise the common example app.
This change will allow for more in-depth testing of MacOS functionalities.
For now, it's still work in progress
Test plan