Skip to content

Commit 73a8a7e

Browse files
authored
fix yellow box style in win32 (#150)
1 parent 8d53a8a commit 73a8a7e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Libraries/YellowBox/UI/YellowBoxList.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ class YellowBoxList extends React.Component<Props, State> {
7373
}
7474

7575
const listStyle = {
76+
width: Platform.OS === 'win32' ? '85%' : undefined,
7677
height:
7778
// Additional `0.5` so the (N + 1)th row can peek into view.
7879
Math.min(items.length, MAX_ITEMS + 0.5) *
@@ -126,16 +127,16 @@ const styles = StyleSheet.create({
126127
list: {
127128
bottom: 0,
128129
position: 'absolute',
129-
width: Platform.OS === 'win32' ? 270 : '100%',
130+
width: '100%',
130131
},
131132
dismissAll: {
132-
bottom: Platform.OS === 'win32' ? undefined : '100%',
133+
bottom: Platform.OS === 'win32' ? 0 : '100%',
133134
flexDirection: 'row',
134135
justifyContent: 'flex-end',
135136
paddingBottom: 4,
136137
paddingEnd: 4,
137138
position: 'absolute',
138-
width: Platform.OS === 'win32' ? 350 : '100%',
139+
width: '100%',
139140
},
140141
safeArea: {
141142
backgroundColor: YellowBoxStyle.getBackgroundColor(0.95),

0 commit comments

Comments
 (0)