[native] Fix up ModalPruner's collectDependencyInfo for React Nav 5
[native] Fix up ModalPruner's collectDependencyInfo for React Nav 5

Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal