Skip to content

Commit 5f6b336

Browse files
authored
Temporary fix to make win32 yellowbox not use %'s for now (facebook#21)
1 parent f1e0217 commit 5f6b336

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Libraries/YellowBox/UI/YellowBoxList.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,16 @@ const styles = StyleSheet.create({
126126
list: {
127127
bottom: 0,
128128
position: 'absolute',
129-
width: '100%',
129+
width: Platform.OS === 'win32' ? 270: '100%',
130130
},
131131
dismissAll: {
132-
bottom: '100%',
132+
bottom: Platform.OS === 'win32' ? undefined : '100%',
133133
flexDirection: 'row',
134134
justifyContent: 'flex-end',
135135
paddingBottom: 4,
136136
paddingEnd: 4,
137137
position: 'absolute',
138-
width: '100%',
138+
width: Platform.OS === 'win32' ? 350: '100%',
139139
},
140140
safeArea: {
141141
backgroundColor: YellowBoxStyle.getBackgroundColor(0.95),

0 commit comments

Comments
 (0)