Make osx example utilise the common example app#3055
Conversation
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 |
change runner version from latest -> 15 for more predictability
…hub.com/software-mansion/react-native-gesture-handler into @latekvo/support-osx-in-primary-example
j-piasecki
left a comment
There was a problem hiding this comment.
Looks good, few things I noticed:
Draggableexample 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 intoPressabledoesn'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.
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.
Sure, I'll open a separate PR for it to avoid cluttering this one any further.
j-piasecki
left a comment
There was a problem hiding this comment.
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
m-bert
left a comment
There was a problem hiding this comment.
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