From d2982c2d5445e84d8477f0d8bcbfa014da16bbde Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 18 Sep 2015 00:30:28 +0000 Subject: [PATCH] update website --- docs/backandroid.html | 9 ++++++++- docs/panresponder.html | 8 ++++---- 2 files changed, 12 insertions(+), 5 deletions(-) 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) #

© 2015 Facebook Inc.

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) #

© 2015 Facebook Inc.