react native route flux re-render component on stack pop

前端 未结 2 809
悲哀的现实
悲哀的现实 2021-01-23 18:53

How do you re-run React Component Lifecycle methods to determine if a re-render is necessary when transitioning back to previous screens from stack using React Native Router Flu

2条回答
  •  孤独总比滥情好
    2021-01-23 19:42

    I was facing the same issue below code gave me required result.

    let count = 0;
    moveToMainScreen = () => {
        count += 1;
        Actions.pop({ refresh: { test: count } });
    };
    
    
    
    
    

提交回复
热议问题