Handling back button in React Native, Navigator on Android

前端 未结 6 871
旧巷少年郎
旧巷少年郎 2021-02-01 14:45

I have a Navigator in an Android react native application.

I\'m using navigator.push() to navigate to a different page. It would seem natural t

6条回答
  •  半阙折子戏
    2021-02-01 15:31

    Yes, you have to handle the back button yourself. I think the main reason for this is you may want to do different things with the back button instead of just moving back through the stack. I don't know if there are plans to incorporate back button functionality in the future though.

提交回复
热议问题