@fto-consult/expo-ui 8.82.0 → 8.82.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.
@@ -163,8 +163,11 @@ export default class DrawerLayout extends React.PureComponent {
|
|
163
163
|
{this.props.children}
|
164
164
|
</View>;
|
165
165
|
}
|
166
|
+
/***
|
167
|
+
* retourne le min entre la dimension de l'écran et la prop drawerWidth passée en paramètre
|
168
|
+
*/
|
166
169
|
getDrawerWidth() {
|
167
|
-
return defaultNumber(this.isPortal()? this.state.portalProps?.drawerWidth : 0,this.props.drawerWidth);
|
170
|
+
return Math.min(defaultNumber(this.isPortal()? this.state.portalProps?.drawerWidth : 0,this.props.drawerWidth),Dimensions.get("window").width);
|
168
171
|
}
|
169
172
|
render() {
|
170
173
|
const { accessibilityViewIsModal, drawerShown, openValue } = this.state;
|