Migrate away from StyleSheet.absoluteFill and StyleSheet.absoluteFillObject

This commit is contained in:
Tomek Zawadzki
2026-07-29 23:04:06 +02:00
committed by Oleksii Bulenok
parent b5540bffab
commit 46091e5fc7
3 changed files with 11 additions and 10 deletions
@@ -1,5 +1,5 @@
import {useCallback, useState} from 'react'
import {Pressable, StyleSheet, useWindowDimensions, View} from 'react-native'
import {Pressable, useWindowDimensions, View} from 'react-native'
import {useSafeAreaInsets} from 'react-native-safe-area-context'
import Svg, {Path} from 'react-native-svg'
import {
@@ -125,7 +125,7 @@ export function InviteScannerScreen() {
noInsetTop
style={{backgroundColor: t.palette.black}}>
<CameraView
style={StyleSheet.absoluteFill}
style={[a.absolute, a.inset_0]}
facing="back"
barcodeScannerSettings={{barcodeTypes: ['qr']}}
onBarcodeScanned={scannerEnabled ? onBarcodeScanned : undefined}
@@ -254,7 +254,7 @@ function ScannerScrim() {
`V${y + r} A${r} ${r} 0 0 1 ${x + r} ${y} Z`
return (
<Svg
style={StyleSheet.absoluteFill}
style={[a.absolute, a.inset_0]}
width={width}
height={height}
pointerEvents="none">