react-native-navigation-hooks
react-native-navigation-hooks copied to clipboard
popTo from useNavigation is missing componentId parameter
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.
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!
Hi, I'm interested in this change as well ;-)
Any update?
glad to have this one on the next release