mirror of
https://github.com/status-im/react-native.git
synced 2025-01-15 20:15:11 +00:00
Using SafeAreaView in YellowBox (2nd attempt)
Summary: Now it does not clipped on iPhone X. Reviewed By: yungsters Differential Revision: D5907527 fbshipit-source-id: 10d05e4ac5d16a9e257efa78795bff9f14f4c0bb
This commit is contained in:
parent
3cbc36138a
commit
c70ac24966
@ -16,6 +16,7 @@
|
||||
const EventEmitter = require('EventEmitter');
|
||||
const Platform = require('Platform');
|
||||
const React = require('React');
|
||||
const SafeAreaView = require('SafeAreaView');
|
||||
const StyleSheet = require('StyleSheet');
|
||||
const RCTLog = require('RCTLog');
|
||||
|
||||
@ -264,6 +265,7 @@ const WarningInspector = ({
|
||||
|
||||
return (
|
||||
<View style={styles.inspector}>
|
||||
<SafeAreaView style={styles.safeArea}>
|
||||
<View style={styles.inspectorCount}>
|
||||
<Text style={styles.inspectorCountText}>
|
||||
{countSentence}
|
||||
@ -305,6 +307,7 @@ const WarningInspector = ({
|
||||
<Text style={styles.inspectorButtonText}>Dismiss All</Text>
|
||||
</TouchableHighlight>
|
||||
</View>
|
||||
</SafeAreaView>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
@ -464,6 +467,9 @@ var styles = StyleSheet.create({
|
||||
paddingVertical: 22,
|
||||
backgroundColor: backgroundColor(1),
|
||||
},
|
||||
safeArea: {
|
||||
flex: 1,
|
||||
},
|
||||
stacktraceList: {
|
||||
paddingBottom: 5,
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user