backButton beta 9


#1

How can I use backButton actions on beta 9?


#2
platform.registerBackButtonAction(() => {
     var activeNav = _navController.getActive();
      if (activeNav) {
          if (!_navController.canGoBack()){
              platform.exitApp();
          }
          else {
            _navController.pop();
          }
      }
    });

#3

While this may “work” right now, it’s not officially something we support at the moment.
We don’t have any priority system setup in V2 at the moment so if another component says “Dismiss this modal” and you want it to do something else, you can’t override it ATM.

Also, from your example, this should already be built into the framework now