Skip to content

Commit

Permalink
Update BrowserTabBar.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljscript committed May 21, 2024
1 parent 734c9ec commit 2a636a9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const BrowserTabBar = ({webViewRef, webViewState}: Props) => {
}

return (
<View style={[styles.root, styles.shadow, {height: 46 + insets.bottom, paddingBottom: insets.bottom}]}>
<View style={[styles.root, styles.shadow, {height: tabBarHeight + insets.bottom, paddingBottom: insets.bottom}]}>
<Touch disabled={!webViewState.canGoBack} onPress={handleBackward}>
<Icon.Backward color={colorBackward} />
</Touch>
Expand All @@ -80,6 +80,8 @@ export const BrowserTabBar = ({webViewRef, webViewState}: Props) => {
)
}

const tabBarHeight = 46

const Touch = ({children, ...props}: React.PropsWithChildren<TouchableOpacityProps>) => {
return <TouchableOpacity {...props}>{children}</TouchableOpacity>
}
Expand Down

0 comments on commit 2a636a9

Please sign in to comment.