Skip to content

Warning: Non-serializable values were found in the navigation #304

@ghorbani-m

Description

@ghorbani-m

In the ImageGalleryViewer screen, we need the main RCL list to scroll in the background while exploring the images.
For this purpose, we passed the RCL reference to this screen through navigation params and it is not a good idea and get a warning from react-navigation.
ImageGalleryViewer > params.scrollToItem (Function)

This can break usage such as persisting and restoring state. This might happen if you passed non-serializable values such as function, class instances etc. in params. If you need to use components with callbacks in your options, you can use 'navigation.setOptions' instead. See https://reactnavigation.org/docs/troubleshooting#i-get-the-warning-non-serializable-values-were-found-in-the-navigation-state for more details.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions