@@ -285,32 +285,45 @@ export function Header(props: Props) {
285285
286286 return (
287287 < Animated . View
288- pointerEvents = "box-none"
289- style = { [ { height, minHeight, maxHeight, opacity, transform } ] }
288+ style = { [
289+ {
290+ pointerEvents : 'box-none' ,
291+ height,
292+ minHeight,
293+ maxHeight,
294+ opacity,
295+ transform,
296+ } ,
297+ ] }
290298 >
291299 < Animated . View
292- pointerEvents = "box-none"
293- style = { [ StyleSheet . absoluteFill , backgroundContainerStyle ] }
300+ style = { [
301+ StyleSheet . absoluteFill ,
302+ { pointerEvents : 'box-none' } ,
303+ backgroundContainerStyle ,
304+ ] }
294305 >
295306 { headerBackground ? (
296307 headerBackground ( { style : backgroundStyle } )
297308 ) : (
298309 < HeaderBackground
299- pointerEvents = {
300- // Allow touch through the header when background color is transparent
301- headerTransparent &&
302- ( backgroundStyle . backgroundColor === 'transparent' ||
303- Color ( backgroundStyle . backgroundColor ) . alpha ( ) === 0 )
304- ? 'none'
305- : 'auto'
306- }
307- style = { backgroundStyle }
310+ style = { [
311+ {
312+ // Allow touch through the header when background color is transparent
313+ pointerEvents :
314+ headerTransparent &&
315+ ( backgroundStyle . backgroundColor === 'transparent' ||
316+ Color ( backgroundStyle . backgroundColor ) . alpha ( ) === 0 )
317+ ? 'none'
318+ : 'auto' ,
319+ } ,
320+ backgroundStyle ,
321+ ] }
308322 />
309323 ) }
310324 </ Animated . View >
311- < View pointerEvents = "none" style = { { height : headerStatusBarHeight } } />
325+ < View style = { { pointerEvents : 'none' , height : headerStatusBarHeight } } />
312326 < View
313- pointerEvents = "box-none"
314327 style = { [
315328 styles . content ,
316329 Platform . OS === 'ios' && frame . width >= IPAD_MINI_MEDIUM_WIDTH
@@ -319,7 +332,6 @@ export function Header(props: Props) {
319332 ] }
320333 >
321334 < Animated . View
322- pointerEvents = "box-none"
323335 style = { [
324336 styles . start ,
325337 ! searchBarVisible && headerTitleAlign === 'center' && styles . expand ,
@@ -332,7 +344,6 @@ export function Header(props: Props) {
332344 { Platform . OS === 'ios' || ! searchBarVisible ? (
333345 < >
334346 < Animated . View
335- pointerEvents = "box-none"
336347 style = { [
337348 styles . title ,
338349 {
@@ -369,7 +380,6 @@ export function Header(props: Props) {
369380 } ) }
370381 </ Animated . View >
371382 < Animated . View
372- pointerEvents = "box-none"
373383 style = { [
374384 styles . end ,
375385 styles . expand ,
@@ -421,6 +431,7 @@ export function Header(props: Props) {
421431
422432const styles = StyleSheet . create ( {
423433 content : {
434+ pointerEvents : 'box-none' ,
424435 flex : 1 ,
425436 flexDirection : 'row' ,
426437 alignItems : 'stretch' ,
@@ -430,16 +441,19 @@ const styles = StyleSheet.create({
430441 } ,
431442 title : {
432443 justifyContent : 'center' ,
444+ pointerEvents : 'box-none' ,
433445 } ,
434446 start : {
435447 flexDirection : 'row' ,
436448 alignItems : 'center' ,
437449 justifyContent : 'flex-start' ,
450+ pointerEvents : 'box-none' ,
438451 } ,
439452 end : {
440453 flexDirection : 'row' ,
441454 alignItems : 'center' ,
442455 justifyContent : 'flex-end' ,
456+ pointerEvents : 'box-none' ,
443457 } ,
444458 expand : {
445459 flexGrow : 1 ,
0 commit comments