[fix] BackHandler export; remove BackAndroid

Fix #673
This commit is contained in:
Nicolas Gallagher
2017-10-04 11:45:26 -07:00
parent 5faa3af19a
commit 5353011ee4
3 changed files with 6 additions and 7 deletions
@@ -12,7 +12,7 @@
function emptyFunction() {}
const BackAndroid = {
const BackHandler = {
exitApp: emptyFunction,
addEventListener() {
return {
@@ -22,4 +22,4 @@ const BackAndroid = {
removeEventListener: emptyFunction
};
export default BackAndroid;
export default BackHandler;
+3 -4
View File
@@ -9,7 +9,7 @@ import Animated from './apis/Animated';
import AppRegistry from './apis/AppRegistry';
import AppState from './apis/AppState';
import AsyncStorage from './apis/AsyncStorage';
import BackAndroid from './apis/BackAndroid';
import BackHandler from './apis/BackHandler';
import Clipboard from './apis/Clipboard';
import Dimensions from './apis/Dimensions';
import Easing from './apis/Easing';
@@ -73,7 +73,7 @@ export {
AppRegistry,
AppState,
AsyncStorage,
BackAndroid,
BackHandler,
Clipboard,
Dimensions,
Easing,
@@ -138,8 +138,7 @@ const ReactNative = {
AppRegistry,
AppState,
AsyncStorage,
BackAndroid,
BackHandler: BackAndroid,
BackHandler,
Clipboard,
Dimensions,
Easing,