Replies: 1 comment 11 replies
-
Hey! Yes, it's possible. Currently, there is no automated way to do this (but we have this on our backlog). Here are the steps you need to take:
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
const {getPlatformResolver} = require('@callstack/out-of-tree-platforms');
const config = {
resolver: {
resolveRequest: getPlatformResolver({
platformNameMap: {visionos: '@callstack/react-native-visionos'},
}),
},
};
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
"exclude": [
"**/Pods/**",
] You might run into some issues with your dependencies not supporting visionOS, In that case you can try quickly patching their podspecs using method described in this blog post: https://www.oskarkwasniewski.dev/blog/bringing-react-native-libraries-to-apple-vision-pro |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all!
is it possible to integrate react-native-visionos within an existing React Native app?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions