diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2017-12-20 11:32:55 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2017-12-20 11:34:21 +0100 |
| commit | 2aae380b0af018bf0187bb31fb0fedf6a457ebf1 (patch) | |
| tree | a8ad6ee12956d92e6257bea07dedc44063f3017f /app/lib/platform.android.js | |
| parent | 7b47ddf735af7f3d6065fb6c3ffea6e9ddfd86cb (diff) | |
| parent | 8b146934260739ae609791a1fb676d48ceb954c0 (diff) | |
| download | mullvadvpn-2aae380b0af018bf0187bb31fb0fedf6a457ebf1.tar.xz mullvadvpn-2aae380b0af018bf0187bb31fb0fedf6a457ebf1.zip | |
Merge backend and frontend repo master branches
Conflicts:
.gitignore
.travis.yml
README.md
Diffstat (limited to 'app/lib/platform.android.js')
| -rw-r--r-- | app/lib/platform.android.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/lib/platform.android.js b/app/lib/platform.android.js new file mode 100644 index 0000000000..d7bd39b867 --- /dev/null +++ b/app/lib/platform.android.js @@ -0,0 +1,13 @@ +// @flow +import { BackHandler } from 'react-native'; +import { Linking } from 'react-native'; + +const exit = () => { + BackHandler.exitApp(); +}; + +const open = (link: string) => { + Linking.openURL(link); +}; + +export {exit, open}; |
