-
Notifications
You must be signed in to change notification settings - Fork 59
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
Add React Native for macOS support. #593
Conversation
@microsoft-github-policy-service agree |
looks like build pipeline locked up? what needs to be done, beyond fixing the branch conflicts for this to be merged? It looks like we'll need to do a few of these things to support visionOS as well. |
I would say it at least needs a full code review from the team and infrastructure to make sure it stays working. See the original forum post for context: https://forum.babylonjs.com/t/im-trying-to-make-babylonreactnative-to-work-on-macos/39178 As for visionOS, maybe @CedricGuillemet has thoughts. |
I was busy for working at other part of my app, so I almost forgot about it! Thanks for reminding me @matthargett :) And @bghgary, When your team will do full code review? |
It's a bit hard to do this since it's a change that we probably need to try locally before it will make sense. It might also be good to add infrastructure for macOS (CI, etc., build for macOS at a minimum) before we review the changes.
No worries. Thanks for spending time contributing! |
Hi! I'm unfamiliar with the project, but I am excited to see more macOS support across packages! For macOS CI, have you considered using React Native Test App as your example app / playground? It's basically a template app that reduces the boiler plate as much as possible, targets multiple React Native versions, and has macOS and Windows support built in. If the playground was updated to use react-native-test-app, adding macOS to it and CI should be a breeze. |
[BabylonNativeInterop updateView:self]; | ||
} | ||
|
||
#ifndef TARGET_OS_OSX |
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 think if !TARGET_OS_OSX
would be better here
I was not aware of this. It looks pretty cool. Seems like it could help with reducing maintenance cost of the test app, and make it easier to add an additional platform (MacOS). |
I've open an issue to keep track #632 |
@CedricGuillemet I forgot to post here, but I chatted with Ryan over on Teams and I'll be attempting to add RNTA to this repo myself soon-ish. We ironed out a few things over the last few days and I think I'm very close to be able to start on this 👍 (I'll also post a comment in the issue you made) |
update, here's the PR adding a RNTA based example app: #641 |
Describe the change
We can now run BabylonReactNative on macOS.
plus additional class component support - Higher-order component
withEngine
and Prop type for classWithEngineProps
added.usage:
Screenshots
Documentation
Have you updated the documentation to reflect your changes? Yes
Testing
Have you tested the final iteration of your changes? Yes