Skip to content

Basic example not working as a functional component #115

@MarcHbb

Description

@MarcHbb

I tried to use the basic example with functional component and failed to to this. I saw there's already an issue discussing about it (#9), but no answer was provide.

Using the navigation lib, everything is fine, but this librairy not.
The main goal is to achieve the basic implementation so I can do more complex things.

Tried to use State, Refs but nothing is working, everytime I get errors like Error: Maximum update depth exceeded.

Repro : https://snack.expo.dev/@marc-hbb/sharedelement

EDIT : My final goal is to have a shared element transition on a view. With navigation, it seems that if I want to use it on a View (with an image inside), the image is laggy.
On the other hand, on the "hero" example the shared element is a View.
If there's a way to achieve this with react-navigation-shared-element please let me know ! :)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions