Skip to content

Commit

Permalink
Merge pull request #1399 from kaloudis/ios-safeareaview
Browse files Browse the repository at this point in the history
iOS: add SafeAreaView to Screen component
  • Loading branch information
kaloudis authored Mar 25, 2023
2 parents 735d777 + 34b9d7f commit 3e0a78c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/Screen.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { SafeAreaView } from 'react-native';
import LinearGradient from 'react-native-linear-gradient';

import { themeColor } from '../utils/ThemeUtils';
Expand All @@ -16,7 +17,9 @@ export default class Screen extends React.PureComponent {
flex: 1
}}
>
{this.props.children}
<SafeAreaView style={{ flex: 1 }}>
{this.props.children}
</SafeAreaView>
</LinearGradient>
);
}
Expand Down

0 comments on commit 3e0a78c

Please sign in to comment.