diff --git a/docs/backandroid.html b/docs/backandroid.html index d9a2b5cea62..c7908dbf2bd 100644 --- a/docs/backandroid.html +++ b/docs/backandroid.html @@ -1,4 +1,11 @@ -BackAndroid – React Native | A framework for building native apps using React

BackAndroid

Methods #

static exitApp() #

static addEventListener(eventName: BackPressEventName, handler: Function) #

static removeEventListener(eventName: BackPressEventName, handler: Function) #

BackAndroid

Detect hardware back button presses, and programatically invoke the default back button +functionality to exit the app if there are no listeners or if none of the listeners return true.

Example:

BackAndroid.addEventListener('hardwareBackPress', function() { + if (!this.onMainScreen()) { + this.goBack(); + return true; + } + return false; +});

Methods #

static exitApp() #

static addEventListener(eventName: BackPressEventName, handler: Function) #

static removeEventListener(eventName: BackPressEventName, handler: Function) #