@fto-consult/expo-ui 1.3.8 → 1.3.10

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": "1.3.8",
3
+ "version": "1.3.10",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -61,7 +61,7 @@
61
61
  "@expo/html-elements": "^0.2.0",
62
62
  "@expo/metro-config": "^0.4.0",
63
63
  "@expo/webpack-config": "^0.17.2",
64
- "@fto-consult/common": "^1.5.6",
64
+ "@fto-consult/common": "^1.5.9",
65
65
  "@gorhom/portal": "^1.0.14",
66
66
  "@react-native-async-storage/async-storage": "~1.17.3",
67
67
  "@react-native-community/datetimepicker": "6.2.0",
@@ -222,7 +222,7 @@ CommonListComponent.propTypes = {
222
222
  const styles = StyleSheet.create({
223
223
  container: {
224
224
  flex: 1,
225
- minHeight : 300,
225
+ minHeight : 100,
226
226
  },
227
227
  columnWrapperStyle : {
228
228
  flex : 1,
@@ -11,6 +11,7 @@ import theme,{StyleProp} from "$theme";
11
11
  //import Animated from "react-native-reanimated";
12
12
  //import Animation,{OpacityAnimation} from "$ecomponents/Animations";
13
13
  import OpacityAnimation from "$ecomponents/Animations/OpacityAnimation";
14
+ import { Surface } from "react-native-paper";
14
15
  import { Platform } from "react-native";
15
16
  import {isWeb} from "$cplatform";
16
17
  import {isAndroid} from "$cplatform";
@@ -104,7 +105,7 @@ const ModalComponent = React.forwardRef((props,ref)=>{
104
105
  const Anim = animate !== false ? OpacityAnimation : View;
105
106
  const wrapperProps = animate !== false ? {enteringCallback:callback,exitingCallback:callback} : {};
106
107
  return !visible?null: <Portal>
107
- <Animated.View
108
+ <Anim
108
109
  ref={ref}
109
110
  testID={'RN__ModalComponent'}
110
111
  {...rest}
@@ -113,6 +114,9 @@ const ModalComponent = React.forwardRef((props,ref)=>{
113
114
  accessibilityLiveRegion="polite"
114
115
  onAccessibilityEscape={hideModal}
115
116
  style = {[styles.modal,rest.style]}
117
+ animationType = {animationType}
118
+ animationDuration = {animationDuration}
119
+ animationPosition = {animationPosition}
116
120
  >
117
121
  <TouchableWithoutFeedback
118
122
  accessibilityLabel={overlayAccessibilityLabel}
@@ -132,19 +136,17 @@ const ModalComponent = React.forwardRef((props,ref)=>{
132
136
  ]}
133
137
  />
134
138
  </TouchableWithoutFeedback>
135
- <Anim testID="RN__ModalComponent__ContentContainer"
139
+ <Surface testID="RN__ModalComponent__ContentContainer"
140
+ elevation = {5}
136
141
  {...contentContainerProps}
137
142
  {...wrapperProps}
138
- animationType = {animationType}
139
- animationDuration = {animationDuration}
140
- animationPosition = {animationPosition}
141
143
  ref = {contentContainerRef}
142
- style={[styles.contentContainer,{ marginTop: TOP_INSET, marginBottom: BOTTOM_INSET },contentContainerProps.style]}
144
+ style={[styles.contentContainer,{ marginTop: TOP_INSET, marginBottom: BOTTOM_INSET,backgroundColor:'transparent' },contentContainerProps.style]}
143
145
  pointerEvents="box-none"
144
146
  >
145
147
  {children}
146
- </Anim>
147
- </Animated.View>
148
+ </Surface>
149
+ </Anim>
148
150
  </Portal>
149
151
  });
150
152
 
@@ -44,7 +44,7 @@ const UserProfileAvatarComponent = React.forwardRef(({drawerRef,...props},ref)=>
44
44
  label : i18n.lang("logout",'Déconnexion'),
45
45
  icon : "logout",
46
46
  onPress : (a)=>{
47
- closeDrawer(Auth.logout);
47
+ closeDrawer(Auth.signOut);
48
48
  }
49
49
  }
50
50
  ];