callstack / react-native-visionos

A framework for building native visionOS applications using React
https://callstack.github.io/react-native-visionos-docs/
MIT License
1k stars 30 forks source link

Missing Pods #15

Closed okwasniewski closed 1 month ago

okwasniewski commented 1 year ago

Description

In this issue I want to track Pods that are still missing visionOS support that we needed to patch by adding Podspec through third-party-pods:

derwaldgeist commented 9 months ago

I just tried to integrate this RN package:

npmjs.com/package/@meteorrn/core

which requires AsyncStorage:

@react-native-async-storage/async-storage@>=1.8.1

I had to "force" install the packages, since they are not built for the react-native version you're using, so problems were to be expected.

I ended up with this error message:

image

I installed the Pods, but the error remains. So I assume that this package is not supported yet?

okwasniewski commented 9 months ago

@derwaldgeist

Unfortunately, it's not supported yet. I wrote a blog post on how to contribute visionOS support for react-native third-party modules: https://www.oskarkwasniewski.dev/blog/bringing-react-native-libraries-to-apple-vision-pro

derwaldgeist commented 9 months ago

Thanks for the super-fast response, highly appreciated. I'll have a look at the blog post!

derwaldgeist commented 9 months ago

The approach you decribed in your blog worked. However, the package also soft-requires @react-native-community/netinfo, which in turn requires CoreTelephony to detect connection breakups. That's not supported by visionOS, however. So I'll have to find a workaround for this or live without an auto-reconnect. Thanks again for the great work! That's way more than I expected at this early stage.

Sly777 commented 8 months ago

react-native-screens is missing it atm. I tried to install react-navigation but it always gives an error: require native component rnsscreenstackheaderconfig was not found in the UIManager and when I checked the podfile, RNScreens was missing different between ios and visionos. @okwasniewski

okwasniewski commented 8 months ago

Hey @Sly777,

I'm still working on the PR: https://github.com/software-mansion/react-native-screens/pull/2025

I'm hoping to get it merged today 🤞

Sly777 commented 8 months ago

AWEEESSSOMEEEEEEE 🔥 🔥 @okwasniewski

thiagobrez commented 7 months ago

Hey @derwaldgeist just FYI, @react-native-community/netinfo now also has support for visionOS: https://github.com/react-native-netinfo/react-native-netinfo/pull/714

CoreTelephony is not supported indeed, but then it falls back to the lower-level ifaddrs, which is the same approach done for macOS, tvOS and Catalyst, since they also do not support telephony

okwasniewski commented 2 months ago

Looks like https://github.com/facebookincubator/SocketRocket/releases/tag/0.7.1 has been released!

okwasniewski commented 2 months ago

Merging this PR should close the issue: https://github.com/facebook/react-native/pull/46300

okwasniewski commented 1 month ago

PR merged!