Skip to content

Commit c5ae922

Browse files
committed
Fix Platform API example
Fix SafeAreaView style
1 parent 0db29c1 commit c5ae922

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docs/platform.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {SafeAreaView, SafeAreaProvider} from 'react-native-safe-area-context';
1313
const App = () => {
1414
return (
1515
<SafeAreaProvider>
16-
<SafeAreaView>
16+
<SafeAreaView style={styles.safeArea}>
1717
<ScrollView contentContainerStyle={styles.container}>
1818
<Text>OS</Text>
1919
<Text style={styles.value}>{Platform.OS}</Text>
@@ -48,6 +48,9 @@ const styles = StyleSheet.create({
4848
padding: 4,
4949
marginBottom: 8,
5050
},
51+
safeArea: {
52+
flex: 1
53+
},
5154
});
5255
5356
export default App;

0 commit comments

Comments
 (0)