react-native-visionos icon indicating copy to clipboard operation
react-native-visionos copied to clipboard

Missing Pods

Open okwasniewski opened this issue 2 years ago • 8 comments

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:

  • SocketRocket: https://github.com/facebookincubator/SocketRocket/pull/669

okwasniewski avatar Oct 20 '23 11:10 okwasniewski

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?

derwaldgeist avatar Jan 11 '24 10:01 derwaldgeist

@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

okwasniewski avatar Jan 11 '24 10:01 okwasniewski

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

derwaldgeist avatar Jan 11 '24 10:01 derwaldgeist

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.

derwaldgeist avatar Jan 11 '24 11:01 derwaldgeist

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

Sly777 avatar Feb 13 '24 20:02 Sly777

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 🤞

okwasniewski avatar Feb 14 '24 09:02 okwasniewski

AWEEESSSOMEEEEEEE 🔥 🔥 @okwasniewski

Sly777 avatar Feb 14 '24 09:02 Sly777

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

thiagobrez avatar Mar 08 '24 09:03 thiagobrez

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

okwasniewski avatar Sep 02 '24 11:09 okwasniewski

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

okwasniewski avatar Sep 02 '24 12:09 okwasniewski

PR merged!

okwasniewski avatar Sep 17 '24 10:09 okwasniewski