andrew-levy / swiftui-react-native

Bringing SwiftUI features to your React Native app. It's like if React Native and SwiftUI had a child.
swiftui-react-native.vercel.app
MIT License
651 stars 22 forks source link

Support for ContextMenu #49

Open lunchmate1 opened 3 weeks ago

lunchmate1 commented 3 weeks ago

Thoughts on adding support for the contextMenu modifier? Including previews? Would be such a neat addition to this already awesome package!

andrew-levy commented 3 weeks ago

@lunchmate1 hey, thanks! I tried to do this a few months ago, but we currently aren't able to pass components as props to native views,with the exception of the children prop. How do you expect the api to look like in jsx? We would probably need to do something like passing an array of objects for each context menu option. Definitely possible but not ideal.