Skip to content

Commit 9ad5bc6

Browse files
committed
fix safe area view styles
1 parent 73d1819 commit 9ad5bc6

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

examples/RNOneSignalTS/OSConsole.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const styles = StyleSheet.create({
5050
backgroundColor: '#f8f9fa',
5151
},
5252
body: {
53-
backgroundColor: 'grey',
53+
backgroundColor: '#f8f9fa',
5454
flex: 1,
5555
flexGrow: 1,
5656
flexDirection: 'row',
@@ -65,11 +65,13 @@ const styles = StyleSheet.create({
6565
flex: 1,
6666
flexWrap: 'wrap',
6767
fontSize: 10,
68+
color: '#000',
6869
},
6970
textAndroid: {
7071
flex: 1,
7172
flexWrap: 'wrap',
7273
fontSize: 10,
74+
color: '#000',
7375
},
7476
});
7577

examples/RNOneSignalTS/OSDemo.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ const OSDemo: React.FC = () => {
233233
}, []);
234234

235235
return (
236-
<SafeAreaView style={styles.container}>
236+
<SafeAreaView style={styles.container} edges={['bottom', 'left', 'right']}>
237237
<View style={styles.header}>
238238
<Text style={styles.title}>OneSignal</Text>
239239
<OSConsole value={consoleValue} />
@@ -273,7 +273,8 @@ const styles = StyleSheet.create({
273273
title: {
274274
fontSize: 40,
275275
alignSelf: 'center',
276-
paddingVertical: 10,
276+
paddingTop: 4,
277+
paddingBottom: 10,
277278
},
278279
clearButton: {
279280
position: 'absolute',

0 commit comments

Comments
 (0)