Open j-braun0384 opened 2 years ago
To clarify: one example of this is Twitter. If you long press a tweet, and then click into it, it'll nicely transition into the next tweet screen. This would be a cool feature.
@nandorojo this feature would be one of those "bridge closing" efforts towards fully native feeling apps in RN. Any idea if this is in the works or being considered?
It would be cool, might need to be on the RN screens side though. Honestly don't know what it would take.
@nandorojo want to revisit this enhancement now that the new architecture is stable and implementing something like this should be easier. Here is another great article on this feature for reference: https://nsscreencast.com/episodes/485-context-menus-previews
if this requires some cooperation from react-native-screens, i think it'll really be worth the time to poke them for involvement. Can't understate how big of a feature this would be.
It would be so cool if we can nicely transition to a new view/screen when we pop the preview after pressing it - a very commonly used tactic in many mainstream apps (twitter, instagram etc.).
Looking at this article: https://kylebashour.com/posts/context-menu-guide - seems the way to go is to tap into the
animator.addCompletion
instance method from thecontextMenuInteraction
func like so:We should be able to house this logic within
RNIContextMenuView.swift
...thoughts?