@fto-consult/expo-ui 6.60.0 → 6.60.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
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fto-consult/expo-ui",
|
3
|
-
"version": "6.60.
|
3
|
+
"version": "6.60.2",
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
5
5
|
"main": "main",
|
6
6
|
"scripts": {
|
@@ -70,7 +70,7 @@
|
|
70
70
|
"@expo/html-elements": "^0.5.1",
|
71
71
|
"@expo/vector-icons": "^13.0.0",
|
72
72
|
"@faker-js/faker": "^8.0.2",
|
73
|
-
"@fto-consult/common": "^3.54.
|
73
|
+
"@fto-consult/common": "^3.54.2",
|
74
74
|
"@pchmn/expo-material3-theme": "^1.3.1",
|
75
75
|
"@react-native-async-storage/async-storage": "1.18.2",
|
76
76
|
"@react-native-community/datetimepicker": "7.2.0",
|
@@ -673,7 +673,7 @@ export default class DropdownAlert extends Component {
|
|
673
673
|
accessible={accessible}>
|
674
674
|
<View style={style} testID={testID+"_ContentContainer"}>
|
675
675
|
<View testID={testID+"_ContentWrapper"} style={[contentContainerStyle]}
|
676
|
-
mediaQueryUpdateStyle={({isMobile,isTablet,width
|
676
|
+
mediaQueryUpdateStyle={({isMobile,isTablet,width})=>{
|
677
677
|
return {
|
678
678
|
maxWidth : isMobile ? (90*width)/100 : isTablet? Math.max((70*width/100),350) : 500
|
679
679
|
}
|
@@ -32,11 +32,11 @@ WebViewComponent.propTypes = {
|
|
32
32
|
WebViewComponent.LocalHtml = React.forwardRef(({file,source,...props},ref)=>{
|
33
33
|
const prevLocalHtml = React.usePrevious(file);
|
34
34
|
const isInitializedRef = React.useRef(false);
|
35
|
-
const [html, setHtml] = useState("");
|
35
|
+
const [html, setHtml] = React.useState("");
|
36
36
|
React.useEffect(()=>{
|
37
37
|
if(isInitializedRef.current && prevLocalHtml == file) return;
|
38
38
|
isInitializedRef.current = true;
|
39
|
-
FileSystem.readFile(
|
39
|
+
FileSystem.readFile(file).then((data)=>{
|
40
40
|
setHtml(data);
|
41
41
|
});
|
42
42
|
},file)
|