react-native-ui-lib 8.4.3-snapshot.7927 → 8.4.3-snapshot.7930
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
|
@@ -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:
|
|
209
|
+
zIndex: 50
|
|
209
210
|
},
|
|
210
211
|
contentContainer: {
|
|
211
212
|
paddingTop: Spacings.s4,
|
|
@@ -97,6 +97,11 @@ 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
|
+
* Can be used to override zIndex or other container-level properties.
|
|
103
|
+
*/
|
|
104
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
100
105
|
/**
|
|
101
106
|
* Custom style for the content container that wraps the footer's children.
|
|
102
107
|
* Can be used to override default padding, gap, or other layout properties.
|