Skip to content

Commit d313a27

Browse files
authored
fix: add missing SafeAreaView to fabric example (#614)
1 parent 270f71d commit d313a27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fabricexample/src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
import * as React from 'react';
10-
import { Image, StyleSheet, Text, View } from 'react-native';
10+
import { Image, SafeAreaView, StyleSheet, Text, View } from 'react-native';
1111
import ViewPager from 'react-native-pager-view';
1212
import { PAGES, createPage } from './utils';
1313
import { Button } from './component/Button';
@@ -105,7 +105,7 @@ export default class App extends React.Component<{}, State> {
105105
render() {
106106
const { page, pages, animationsAreEnabled, dotsVisible } = this.state;
107107
return (
108-
<View style={styles.container}>
108+
<SafeAreaView style={styles.container}>
109109
<ViewPager
110110
style={styles.viewPager}
111111
initialPage={0}
@@ -166,7 +166,7 @@ export default class App extends React.Component<{}, State> {
166166
progress={this.state.progress}
167167
/>
168168
</View>
169-
</View>
169+
</SafeAreaView>
170170
);
171171
}
172172
}

0 commit comments

Comments
 (0)