IjzerenHein / IjzerenHein/react-navigation-shared-element

Trigger header element animation when moving screens from header

Open
#23 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
TypeScript
Stars
1.3k
Forks
125
PR merge metrics
No merged PRs in 30d

Description

The issue right now is that any object that have a shared element must be in the same stack and appear between screen transitions. If you want to do fancier animation with objects from outside the stack, like headers (headerLeft, headerRight), it doesn't fire the functions needed to do this.

For example you have a profile picture in the header of the stack and when tapping on it, the profile pic resized to fit into a "User settings" screen. And if you press the back button the profile picture gest smaller and is in the header again.

Is it something that could be implemented somehow? A different library [FluidTransitions](https://github.com/fram-x/FluidTransitions) had the option to implement something like this.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by tracing how shared-element transitions are handled for React Navigation headers, especially headerLeft and headerRight, and compare the referenced FluidTransitions behavior; done means header elements animate into and out of screens during forward and back navigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.