react native - How do I know what is currently rendered page using navigator? -


how know rendered page using navigator? getcurrentroutes returns routes in navigator stack. i'm looking following page rendered , shown in screen.

navigator.getcurrentpage(); 

okay, figured out.

const curroutes = navigator.getcurrentroutes() curroutes[curroutes.length-1]; 

Comments