@fto-consult/expo-ui 6.58.1 → 6.58.3

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": "6.58.1",
3
+ "version": "6.58.3",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "main",
6
6
  "scripts": {
@@ -19,9 +19,7 @@ import styles, {
19
19
  import {useAppComponent} from "$econtext/hooks";
20
20
 
21
21
  const SplashScreenComponent = ({isLoaded,children , duration, delay,logoWidth,logoHeight,backgroundColor,imageBackgroundSource,imageBackgroundResizeMode,
22
- testID,
23
- disableAppScale,
24
- disableImageBackgroundAnimation,preload})=>{
22
+ testID})=>{
25
23
  const [state,setState] = React.useState({
26
24
  animationDone: false,
27
25
  loadingProgress: new Animated.Value(0)
@@ -29,7 +27,7 @@ const SplashScreenComponent = ({isLoaded,children , duration, delay,logoWidth,lo
29
27
  const { loadingProgress, animationDone } = state;
30
28
  const prevIsLoaded = React.usePrevious(isLoaded);
31
29
  React.useEffect(()=>{
32
- if(prevIsLoaded == isLoaded || !isLoaded) return;
30
+ if(animationDone && (prevIsLoaded == isLoaded || !isLoaded)) return;
33
31
  if(!isNativeMobile()){
34
32
  setState({...state,animationDone:true});
35
33
  } else {
@@ -69,20 +67,8 @@ const SplashScreenComponent = ({isLoaded,children , duration, delay,logoWidth,lo
69
67
  extrapolate: "clamp",
70
68
  }),
71
69
  }
72
-
73
- const appScale = {
74
- transform: [
75
- {
76
- scale: loadingProgress.interpolate({
77
- inputRange: [0, 7, 100],
78
- outputRange: [1.1, 1.05, 1],
79
- }),
80
- },
81
- ],
82
- }
83
70
  const child = (animationDone && isLoaded)? React.isValidElement(children) && children : null;
84
71
  if(animationDone && isLoaded) return child;
85
- const hasComponent = React.isComponent(Component);
86
72
  return <View style={[styles.container]} testID={testID} id={testID}>
87
73
  {!animationDone ? <View style={StyleSheet.absoluteFill} testID={testID+"_Animation"}/> : null}
88
74
  <View style={styles.containerGlue} testID={testID+"_ContainerGlue"}>
@@ -70,7 +70,7 @@ export default function ScreenWrapperNavComponent(_props){
70
70
  {...rest}
71
71
  key = {sanitizedName}
72
72
  authRequired={authRequired === false ? false : authRequired || allowDrawer}
73
- backAction={isModal}
73
+ backAction={options.backAction !== false && Screen.backAction !==false && isModal || false}
74
74
  modal={isModal}
75
75
  navigation = {navigation}
76
76
  route = {route}