Skip to content

Commit

Permalink
Fix position on native platforms for FloatingActionButton
Browse files Browse the repository at this point in the history
  • Loading branch information
Amoralchik committed Jan 16, 2025
1 parent 0965a97 commit dfc6476
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/FloatingActionButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ function FloatingActionButton({onPress, isActive, accessibilityLabel, role, isEm

const floatingActionStyle = isEmoji ? styles.floatingActionEmoji : styles.floatingActionButton;
const iconSizeStyle = isEmoji ? variables.iconSizeExtraSmall : variables.iconSizeNormal;
const pressebleStyles = isEmoji ? [] : [styles.h100, styles.bottomTabBarItem];
const nativePositionFix = Platform.OS === 'web' ? [] : {height: '6%'};
const pressebleStyles = isEmoji ? [nativePositionFix] : [styles.h100, styles.bottomTabBarItem];
const animatedStyles = [floatingActionStyle, isEmoji ? {} : animatedStyle];

const button = (
Expand Down

0 comments on commit dfc6476

Please sign in to comment.