fix android onboarding dev crash (#9132)

This commit is contained in:
Samuel Newman
2025-10-03 22:07:21 +03:00
committed by GitHub
parent 12e09a9bd1
commit 0e9e705d99
+3 -2
View File
@@ -1,5 +1,6 @@
import React, {useState} from 'react' import React, {useState} from 'react'
import {ScrollView, View} from 'react-native' import {ScrollView, View} from 'react-native'
import {Dimensions} from 'react-native'
import {useSafeAreaInsets} from 'react-native-safe-area-context' import {useSafeAreaInsets} from 'react-native-safe-area-context'
import {msg} from '@lingui/macro' import {msg} from '@lingui/macro'
import {useLingui} from '@lingui/react' import {useLingui} from '@lingui/react'
@@ -77,10 +78,10 @@ export function Layout({children}: React.PropsWithChildren<{}>) {
a.absolute, a.absolute,
a.z_10, a.z_10,
{ {
left: '50%', left: isWeb ? '50%' : Dimensions.get('window').width / 2 - 45,
top: insets.top + 2, top: insets.top + 2,
transform: [{translateX: '-50%'}],
}, },
web({transform: [{translateX: '-50%'}]}),
]}> ]}>
<ButtonText>[DEV] Clear</ButtonText> <ButtonText>[DEV] Clear</ButtonText>
</Button> </Button>