@fto-consult/expo-ui 6.58.0 → 6.58.2
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
@@ -9,7 +9,7 @@ import PropTypes from "prop-types";
|
|
9
9
|
import stableHash from "stable-hash";
|
10
10
|
import {defaultNumber,isNumber} from "$cutils";
|
11
11
|
|
12
|
-
const styles = StyleSheet.create({container: { flex: 1 }});
|
12
|
+
const styles = StyleSheet.create({container: { flex: 1,pointerEvents:"box-none" }});
|
13
13
|
|
14
14
|
const AutoResizerComponent = React.forwardRef((props,ref) =>{
|
15
15
|
const {
|
@@ -80,7 +80,6 @@ const AutoResizerComponent = React.forwardRef((props,ref) =>{
|
|
80
80
|
{...viewProps}
|
81
81
|
ref={React.useMergeRefs(innerRef,ref)}
|
82
82
|
onLayout={onLayout}
|
83
|
-
pointerEvents="box-none"
|
84
83
|
style={[styles.container, viewProps.style]}
|
85
84
|
>
|
86
85
|
{canRender() && children({...result,left:result.x,top:result.y}) || null}
|
@@ -124,8 +124,7 @@ const CheckboxComponent = React.forwardRef((props,ref)=>{
|
|
124
124
|
testID = {testID}
|
125
125
|
disabled = {disabled}
|
126
126
|
readOnly = {!isEditable}
|
127
|
-
|
128
|
-
style = {[styles.checkbox,style]}
|
127
|
+
style = {[styles.checkbox,style,{pointerEvents}]}
|
129
128
|
position = {position}
|
130
129
|
status = {status}
|
131
130
|
color = {cColor}
|
@@ -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"}>
|