react-native-ui-lib 8.4.0-snapshot.7894 → 8.4.0-snapshot.7896

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ui-lib",
3
- "version": "8.4.0-snapshot.7894",
3
+ "version": "8.4.0-snapshot.7896",
4
4
  "main": "src/index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
@@ -1,10 +1,11 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
2
  import { ButtonProps } from '../button';
3
+ import { ScreenFooterProps } from '../screenFooter';
3
4
  export declare enum FloatingButtonLayouts {
4
5
  VERTICAL = "Vertical",
5
6
  HORIZONTAL = "Horizontal"
6
7
  }
7
- export interface FloatingButtonProps {
8
+ export interface FloatingButtonProps extends Pick<ScreenFooterProps, 'isAndroidEdgeToEdge'> {
8
9
  /**
9
10
  * Whether the button is visible
10
11
  */
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useMemo } from 'react';
2
2
  import { StyleSheet } from 'react-native';
3
- import { asBaseComponent } from "../../commons/new";
3
+ import { asBaseComponent, Constants } from "../../commons/new";
4
4
  import { LogService } from "../../services";
5
5
  import { Colors, Shadows, Spacings } from "../../style";
6
6
  import Button from "../button";
@@ -27,7 +27,8 @@ const FloatingButton = props => {
27
27
  duration = 300,
28
28
  withoutAnimation,
29
29
  hideBackgroundOverlay,
30
- hoisted = true,
30
+ hoisted = Constants.isAndroid,
31
+ isAndroidEdgeToEdge,
31
32
  testID
32
33
  } = props;
33
34
  useEffect(() => {
@@ -69,7 +70,7 @@ const FloatingButton = props => {
69
70
  }] : undefined} enableShadow={false} />;
70
71
  };
71
72
  const children = isHorizontal ? [renderSecondaryButton(), renderPrimaryButton()] : [renderPrimaryButton(), renderSecondaryButton()];
72
- return <ScreenFooter visible={visible} layout={isHorizontal ? ScreenFooterLayouts.HORIZONTAL : ScreenFooterLayouts.VERTICAL} backgroundType={hideBackgroundOverlay ? ScreenFooterBackgrounds.TRANSPARENT : ScreenFooterBackgrounds.FADING} keyboardBehavior={hoisted ? KeyboardBehavior.HOISTED : KeyboardBehavior.STICKY} animationDuration={withoutAnimation ? 0 : duration} itemsFit={fullWidth ? ItemsFit.STRETCH : undefined} contentContainerStyle={footerContentContainerStyle} testID={testID}>
73
+ return <ScreenFooter visible={visible} layout={isHorizontal ? ScreenFooterLayouts.HORIZONTAL : ScreenFooterLayouts.VERTICAL} backgroundType={hideBackgroundOverlay ? ScreenFooterBackgrounds.TRANSPARENT : ScreenFooterBackgrounds.FADING} keyboardBehavior={hoisted ? KeyboardBehavior.HOISTED : KeyboardBehavior.STICKY} isAndroidEdgeToEdge={isAndroidEdgeToEdge} animationDuration={withoutAnimation ? 0 : duration} itemsFit={fullWidth ? ItemsFit.STRETCH : undefined} contentContainerStyle={footerContentContainerStyle} testID={testID}>
73
74
  {children}
74
75
  </ScreenFooter>;
75
76
  };