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.
Hello,
I am trying to replace
Navigation.popTo(componentId)with useNavigation hook, however according to typings there is not support for passingcomponentIdwhich I want to pop to.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.