@fto-consult/expo-ui 8.82.5 → 8.82.6
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": "8.82.
|
3
|
+
"version": "8.82.6",
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
5
5
|
"react-native-paper-doc": "https://github.com/callstack/react-native-paper/tree/main/docs/docs/guides",
|
6
6
|
"scripts": {
|
@@ -128,11 +128,10 @@ export default class DrawerLayout extends React.PureComponent {
|
|
128
128
|
return defaultStr(this.state.portalProps.testID,"RN_DrawerLayoutPortal");
|
129
129
|
}
|
130
130
|
renderPortalTitle(){
|
131
|
-
const titleProps = defaultObj(this.state.portalProps.titleProps);
|
132
131
|
const testID = this.getPortalTestID();
|
133
132
|
const title = this.state.portalProps?.title;
|
134
133
|
const isPositionRight = this.isPositionRight();
|
135
|
-
const
|
134
|
+
const appBarProps = defaultObj(this.state.portalProps?.appBarProps);
|
136
135
|
return <AppBar
|
137
136
|
title={React.isValidElement(title) ? title : title || null}
|
138
137
|
testID={testID+"_TitleContainer"}
|
@@ -140,8 +139,8 @@ export default class DrawerLayout extends React.PureComponent {
|
|
140
139
|
this.closeDrawer();
|
141
140
|
return false;
|
142
141
|
}}
|
143
|
-
{...
|
144
|
-
backActionProps = {extendObj(true,{},
|
142
|
+
{...appBarProps}
|
143
|
+
backActionProps = {extendObj(true,{},appBarProps.backActionProps,{icon:this.state.portalProps?.closeIcon || !isPositionRight == 'left'? 'chevron-left' : 'chevron-right'})}
|
145
144
|
/>
|
146
145
|
}
|
147
146
|
renderPortalChildren(){
|
@@ -564,7 +563,7 @@ DrawerLayout.propTypes = {
|
|
564
563
|
drawerPosition : posPropType,
|
565
564
|
position : posPropType,
|
566
565
|
drawerWidth : PropTypes.number,
|
567
|
-
|
566
|
+
appBarProps : PropTypes.shape({
|
568
567
|
...defaultObj(AppBar.propTypes),
|
569
568
|
}),
|
570
569
|
}),
|