Skip to content

Commit

Permalink
fix(ui): forehead in navigator (#436)
Browse files Browse the repository at this point in the history
Replace height with display css to control TransactionAuthorization show/hide
  • Loading branch information
kyleleow authored Aug 5, 2021
1 parent 5df6e2d commit c32eae0
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions app/screens/TransactionAuthorization.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,20 @@ export function TransactionAuthorization (): JSX.Element | null {

if (status === 'INIT') return null

// hide/dismiss UI when not needed
const viewHeight: { height?: number } = {}
if (status === 'IDLE') {
viewHeight.height = 0
}
return (
<SafeAreaView style={[tailwind('w-full h-full flex-col bg-white'), viewHeight]}>
<View style={{ paddingTop: 20 }}>
<SafeAreaView
style={[
tailwind('w-full h-full flex-col bg-white'),
status === 'IDLE' && tailwind('hidden')
]}
>
<View
style={{
paddingTop: Platform.select({
android: 20
})
}}
>
<TouchableOpacity style={tailwind('bg-white p-4 border-b border-gray-200')} onPress={onCancel}>
<Text
style={tailwind('font-bold text-primary')}
Expand Down

0 comments on commit c32eae0

Please sign in to comment.