react-native-navigation-hooks icon indicating copy to clipboard operation
react-native-navigation-hooks copied to clipboard

popTo from useNavigation is missing componentId parameter

Open ghost opened this issue 4 years ago • 4 comments

Hello,

I am trying to replace Navigation.popTo(componentId) with useNavigation hook, however according to typings there is not support for passing componentId which I want to pop to.

const {popTo} = useNavigation();
popTo(someComponentId); // <-- can not pass componentId

Please compare official rnn docs with rnn hooks docs to see the difference.

If this is not a mistake then please instruct me how to implement requested scenario. Btw I am glad to have this library, the code is so clean. Thank you.

ghost avatar Feb 23 '21 08:02 ghost

You're right! good catch. This is a breaking change but since nobody has mentioned it before I think it won't have much impact I'll let you know as soon as I can publish the new version

Thank you for reporting this!

jpgarcia avatar Feb 25 '21 12:02 jpgarcia

Hi, I'm interested in this change as well ;-)

mtzfactory avatar Jun 15 '21 13:06 mtzfactory

Any update?

keremoge avatar Aug 03 '21 13:08 keremoge

glad to have this one on the next release

kvntzn avatar Sep 07 '22 03:09 kvntzn