We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12e09a9 commit 0e9e705Copy full SHA for 0e9e705
src/screens/Onboarding/Layout.tsx
@@ -1,5 +1,6 @@
1
import React, {useState} from 'react'
2
import {ScrollView, View} from 'react-native'
3
+import {Dimensions} from 'react-native'
4
import {useSafeAreaInsets} from 'react-native-safe-area-context'
5
import {msg} from '@lingui/macro'
6
import {useLingui} from '@lingui/react'
@@ -77,10 +78,10 @@ export function Layout({children}: React.PropsWithChildren<{}>) {
77
78
a.absolute,
79
a.z_10,
80
{
- left: '50%',
81
+ left: isWeb ? '50%' : Dimensions.get('window').width / 2 - 45,
82
top: insets.top + 2,
- transform: [{translateX: '-50%'}],
83
},
84
+ web({transform: [{translateX: '-50%'}]}),
85
]}>
86
<ButtonText>[DEV] Clear</ButtonText>
87
</Button>
0 commit comments