summaryrefslogtreecommitdiffhomepage
path: root/app/components/PlatformWindow.android.js
diff options
context:
space:
mode:
authoranderklander <anderklander@gmail.com>2018-01-17 14:01:22 +0100
committeranderklander <anderklander@gmail.com>2018-01-18 19:57:22 +0100
commitc873ba2643b2fdc94187f02610530777fdf25895 (patch)
treeec9678f318a0d305770af1e81cfb33312c3eba04 /app/components/PlatformWindow.android.js
parentbe2cdd817bfd7f412156c0204bdb4ed77a17f7e4 (diff)
downloadmullvadvpn-c873ba2643b2fdc94187f02610530777fdf25895.tar.xz
mullvadvpn-c873ba2643b2fdc94187f02610530777fdf25895.zip
Rename WindowChrome
And add KeyboardAvoidingView as a platform specific window for android.
Diffstat (limited to 'app/components/PlatformWindow.android.js')
-rw-r--r--app/components/PlatformWindow.android.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/components/PlatformWindow.android.js b/app/components/PlatformWindow.android.js
new file mode 100644
index 0000000000..bccc82a5b5
--- /dev/null
+++ b/app/components/PlatformWindow.android.js
@@ -0,0 +1,18 @@
+// @flow
+import React, { Component } from 'react';
+import { KeyboardAvoidingView } from 'react-native';
+import { MobileAppBridge } from 'NativeModules';
+
+export default class PlatformWindow extends Component {
+ props: {
+ children: Array<React.Element<*>> | React.Element<*>
+ };
+
+ render() {
+ return (
+ <KeyboardAvoidingView behavior={'position'}>
+ { this.props.children }
+ </KeyboardAvoidingView>
+ );
+ }
+} \ No newline at end of file