@fto-consult/expo-ui 7.6.53 → 7.7.1
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
@@ -7,7 +7,8 @@ import theme,{Colors,flattenStyle} from "$theme";
|
|
7
7
|
import {StyleSheet} from "react-native";
|
8
8
|
import {goBack as navGoBack,useNavigation,useRoute,useScreenOptions } from "$cnavigation";
|
9
9
|
import PropTypes from "prop-types";
|
10
|
-
import {
|
10
|
+
import {View,Pressable} from "react-native";
|
11
|
+
import Dimensions from "$cdimentions";
|
11
12
|
import Content from "./Content";
|
12
13
|
import Icon from "$ecomponents/Icon";
|
13
14
|
import {Elevations} from "$ecomponents/Surface";
|
@@ -36,6 +37,7 @@ const AppBarComponent = React.forwardRef((props,ref)=> {
|
|
36
37
|
subtitleProps,testID,
|
37
38
|
right,
|
38
39
|
Notifications,
|
40
|
+
notificationsProps,
|
39
41
|
onBackActionPress : customOnBackActionPress,actions,backActionRef,route,
|
40
42
|
...appBarProps} = props;
|
41
43
|
testID = defaultStr(testID)+"_RN_AppBarComponent";
|
@@ -47,6 +49,7 @@ const AppBarComponent = React.forwardRef((props,ref)=> {
|
|
47
49
|
const anchorStyle = {color:onPrimary};
|
48
50
|
const params = defaultObj(route.params);
|
49
51
|
appBarProps = Object.assign({},appBarProps);
|
52
|
+
notificationsProps = {...Object.assign({},notificationsProps),...Object.assign({},appBarProps.notificationsProps)};
|
50
53
|
const getCallAgs = ()=>{
|
51
54
|
options = defaultObj(options,useScreenOptions());
|
52
55
|
return {navigation,
|
@@ -113,7 +116,7 @@ const AppBarComponent = React.forwardRef((props,ref)=> {
|
|
113
116
|
const elevStyle = elevation && Elevations[elevation];
|
114
117
|
titleProps = defaultObj(titleProps);
|
115
118
|
React.setRef(ref,context);;
|
116
|
-
const notif = React.isComponent(Notifications)? <Notifications/> : React.isValidElement(Notifications)? Notifications : null;
|
119
|
+
const notif = React.isComponent(Notifications)? <Notifications {...notificationsProps}/> : React.isValidElement(Notifications)? Notifications : null;
|
117
120
|
return (
|
118
121
|
<Appbar.Header elevation={elevation} {...appBarProps} testID={testID} style={[styles.header,{backgroundColor},elevStyle,appBarProps.style]} onLayout={onPageResize}>
|
119
122
|
{backAction}
|