react-native-ui-lib 8.4.3-snapshot.7927 → 8.4.3-snapshot.7933

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.3-snapshot.7927",
3
+ "version": "8.4.3-snapshot.7933",
4
4
  "main": "src/index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
@@ -29,6 +29,7 @@ const ScreenFooter = props => {
29
29
  shadow = ScreenFooterShadow.SH20,
30
30
  hideDivider = false,
31
31
  isAndroidEdgeToEdge = !!androidVersion && androidVersion >= 35 ? true : undefined,
32
+ containerStyle: containerStyleOverride,
32
33
  contentContainerStyle: contentContainerStyleOverride
33
34
  } = props;
34
35
  const withoutAnimation = animationDuration === 0;
@@ -186,15 +187,15 @@ const ScreenFooter = props => {
186
187
  return withoutAnimation ? View : Animated.View;
187
188
  }, [withoutAnimation]);
188
189
  const containerStyle = useMemo(() => {
189
- return withoutAnimation ? styles.container : [styles.container, hoistedAnimatedStyle];
190
+ return withoutAnimation ? [styles.container, containerStyleOverride] : [styles.container, hoistedAnimatedStyle, containerStyleOverride];
190
191
  // eslint-disable-next-line react-hooks/exhaustive-deps
191
- }, [withoutAnimation]);
192
+ }, [withoutAnimation, containerStyleOverride]);
192
193
  if (keyboardBehavior === KeyboardBehavior.HOISTED) {
193
194
  return <Container style={containerStyle} pointerEvents={visible ? 'box-none' : 'none'}>
194
195
  <Keyboard.KeyboardAccessoryView renderContent={renderFooterContent} kbInputRef={undefined} scrollBehavior={Keyboard.KeyboardAccessoryView.scrollBehaviors.FIXED_OFFSET} useSafeArea={false} manageScrollView={false} revealKeyboardInteractive onHeightChanged={setHeight} />
195
196
  </Container>;
196
197
  }
197
- return <Animated.View testID={testID} onLayout={onLayout} style={[styles.container, stickyAnimatedStyle]}>
198
+ return <Animated.View testID={testID} onLayout={onLayout} style={[styles.container, stickyAnimatedStyle, containerStyleOverride]}>
198
199
  {renderFooterContent()}
199
200
  </Animated.View>;
200
201
  };
@@ -205,7 +206,7 @@ const styles = StyleSheet.create({
205
206
  bottom: 0,
206
207
  left: 0,
207
208
  right: 0,
208
- zIndex: 1
209
+ zIndex: 50
209
210
  },
210
211
  contentContainer: {
211
212
  paddingTop: Spacings.s4,
@@ -87,6 +87,11 @@
87
87
  "type": "boolean",
88
88
  "description": "Indicates if the device is an Android device that supports edge-to-edge. Defaults to true for Android with version 35 and above, undefined for others."
89
89
  },
90
+ {
91
+ "name": "containerStyle",
92
+ "type": "StyleProp<ViewStyle>",
93
+ "description": "Custom style for the outer container of the footer. Can be used to override zIndex or other container-level properties."
94
+ },
90
95
  {
91
96
  "name": "contentContainerStyle",
92
97
  "type": "StyleProp<ViewStyle>",
@@ -97,6 +97,10 @@ export interface ScreenFooterProps extends PropsWithChildren<{}> {
97
97
  * Only applies when backgroundType is 'solid'
98
98
  */
99
99
  hideDivider?: boolean;
100
+ /**
101
+ * Custom style for the outer container of the footer.
102
+ */
103
+ containerStyle?: StyleProp<ViewStyle>;
100
104
  /**
101
105
  * Custom style for the content container that wraps the footer's children.
102
106
  * Can be used to override default padding, gap, or other layout properties.