diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2018-01-18 19:58:44 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2018-01-18 19:58:44 +0100 |
| commit | 1e9ea182530217becbf99c645d3929c6fe9c55db (patch) | |
| tree | 6fabe4c4a4c81e997548d4a7d48aa0f2581f6689 /app/components | |
| parent | be2cdd817bfd7f412156c0204bdb4ed77a17f7e4 (diff) | |
| parent | a2987cd855902fc70568c4d367b9d13eb364ee35 (diff) | |
| download | mullvadvpn-1e9ea182530217becbf99c645d3929c6fe9c55db.tar.xz mullvadvpn-1e9ea182530217becbf99c645d3929c6fe9c55db.zip | |
Merge branch 'platform-window'
Diffstat (limited to 'app/components')
| -rw-r--r-- | app/components/PlatformWindow.android.js | 17 | ||||
| -rw-r--r-- | app/components/PlatformWindow.css (renamed from app/components/WindowChrome.css) | 0 | ||||
| -rw-r--r-- | app/components/PlatformWindow.js (renamed from app/components/WindowChrome.js) | 2 |
3 files changed, 18 insertions, 1 deletions
diff --git a/app/components/PlatformWindow.android.js b/app/components/PlatformWindow.android.js new file mode 100644 index 0000000000..6670a654e7 --- /dev/null +++ b/app/components/PlatformWindow.android.js @@ -0,0 +1,17 @@ +// @flow +import React, { Component } from 'react'; +import { KeyboardAvoidingView } from 'react-native'; + +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 diff --git a/app/components/WindowChrome.css b/app/components/PlatformWindow.css index 2c6b820a40..2c6b820a40 100644 --- a/app/components/WindowChrome.css +++ b/app/components/PlatformWindow.css diff --git a/app/components/WindowChrome.js b/app/components/PlatformWindow.js index d7094813db..8b8e2c462f 100644 --- a/app/components/WindowChrome.js +++ b/app/components/PlatformWindow.js @@ -1,7 +1,7 @@ // @flow import React, { Component } from 'react'; -export default class WindowChrome extends Component { +export default class PlatformWindow extends Component { props: { children: Array<React.Element<*>> | React.Element<*> } |
