@fto-consult/expo-ui 7.6.53 → 7.7.0

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": "@fto-consult/expo-ui",
3
- "version": "7.6.53",
3
+ "version": "7.7.0",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",
@@ -36,6 +36,7 @@ const AppBarComponent = React.forwardRef((props,ref)=> {
36
36
  subtitleProps,testID,
37
37
  right,
38
38
  Notifications,
39
+ notificationsProps,
39
40
  onBackActionPress : customOnBackActionPress,actions,backActionRef,route,
40
41
  ...appBarProps} = props;
41
42
  testID = defaultStr(testID)+"_RN_AppBarComponent";
@@ -47,6 +48,7 @@ const AppBarComponent = React.forwardRef((props,ref)=> {
47
48
  const anchorStyle = {color:onPrimary};
48
49
  const params = defaultObj(route.params);
49
50
  appBarProps = Object.assign({},appBarProps);
51
+ notificationsProps = {...Object.assign({},notificationsProps),...Object.assign({},appBarProps.notificationsProps)};
50
52
  const getCallAgs = ()=>{
51
53
  options = defaultObj(options,useScreenOptions());
52
54
  return {navigation,
@@ -113,7 +115,7 @@ const AppBarComponent = React.forwardRef((props,ref)=> {
113
115
  const elevStyle = elevation && Elevations[elevation];
114
116
  titleProps = defaultObj(titleProps);
115
117
  React.setRef(ref,context);;
116
- const notif = React.isComponent(Notifications)? <Notifications/> : React.isValidElement(Notifications)? Notifications : null;
118
+ const notif = React.isComponent(Notifications)? <Notifications {...notificationsProps}/> : React.isValidElement(Notifications)? Notifications : null;
117
119
  return (
118
120
  <Appbar.Header elevation={elevation} {...appBarProps} testID={testID} style={[styles.header,{backgroundColor},elevStyle,appBarProps.style]} onLayout={onPageResize}>
119
121
  {backAction}