fx-fotos
fx-fotos copied to clipboard
Warning: Non-serializable values were found in the navigation
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.