callstack / react-native-visionos

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

ActionSheetIOS - Action sheet with anchor is not attaching to a view #7

Closed okwasniewski closed 10 months ago

okwasniewski commented 1 year ago

Description

When trying to open action sheet with an anchor (4h option inside of ActionSheetIOS example in RNTester), the view is not attached to the anchor and it's displayed normally.

This might not be (yet?) supported on VisionOS but it's worth checking why it's not working. Share Sheet is correctly attached to an anchor.

CleanShot 2023-10-20 at 10 43 55@2x

okwasniewski commented 1 year ago

After researching this with @souhe looks like it's not supported on Apple Vision Pro. (Even when recreating the exact same scenario in Swift project)

Maybe we need to report this to Apple (or it will be fixed in the next beta)

okwasniewski commented 10 months ago

After double checking, the same behavior is on iOS. Only iPad attaches to anchor with ActionSheet