diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-02-27 14:56:40 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-02-27 14:56:40 +0100 |
| commit | d6957f43d8dfe9f2346f096106474757869cba6b (patch) | |
| tree | 00998c02a6b01b00eb9609cfad287afe2a81a523 | |
| parent | 76d2e0ec0e15c05e4c053c11e84df7da0fb25e3e (diff) | |
| download | mullvadvpn-d6957f43d8dfe9f2346f096106474757869cba6b.tar.xz mullvadvpn-d6957f43d8dfe9f2346f096106474757869cba6b.zip | |
Create explicit style for TransitionContainer
| -rw-r--r-- | app/components/TransitionContainer.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/components/TransitionContainer.js b/app/components/TransitionContainer.js index 70a92c47d0..c4f6e459f3 100644 --- a/app/components/TransitionContainer.js +++ b/app/components/TransitionContainer.js @@ -16,6 +16,11 @@ type State = { dimensions: Types.Dimensions, }; +const transitionContainerStyle = Styles.createViewStyle({ + flex: 1, + position: 'relative' +}); + export default class TransitionContainer extends Component<TransitionContainerProps, State> { constructor(props: TransitionContainerProps) { @@ -184,7 +189,7 @@ export default class TransitionContainer extends Component<TransitionContainerPr const { children } = this.props; const { previousChildren, childrenAnimation, previousChildrenAnimation } = this.state; return ( - <View style={{flex:1}}> + <View style={[ transitionContainerStyle ]}> { previousChildren && (<Animated.View key={ previousChildren && previousChildren.key } |
