summaryrefslogtreecommitdiffhomepage
path: root/app/lib/exit.android.js
diff options
context:
space:
mode:
authoranderklander <anderklander@gmail.com>2017-11-09 13:30:52 +0100
committerErik Larkö <erik@mullvad.net>2017-12-14 09:16:49 +0100
commita35898e0fafa2dae93b00ca074b810cc88a2fa71 (patch)
tree8b85b8bbff5085e4a121e5d06af31271132ac2f0 /app/lib/exit.android.js
parentb74910f21f720741a6b7e3e537ee637200e6a449 (diff)
downloadmullvadvpn-a35898e0fafa2dae93b00ca074b810cc88a2fa71.tar.xz
mullvadvpn-a35898e0fafa2dae93b00ca074b810cc88a2fa71.zip
Reactxp starter pack
Some changes in app init and rendering the header bar in reactxp. Moved linking and exit to separate files for web/mobile
Diffstat (limited to 'app/lib/exit.android.js')
-rw-r--r--app/lib/exit.android.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/lib/exit.android.js b/app/lib/exit.android.js
new file mode 100644
index 0000000000..2dbcf80413
--- /dev/null
+++ b/app/lib/exit.android.js
@@ -0,0 +1,5 @@
+import { BackHandler } from 'react-native';
+
+module.exports = function () {
+ BackHandler.exitApp();
+}