@fto-consult/expo-ui 3.6.0 → 3.6.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "3.6.0",
3
+ "version": "3.6.1",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -20,6 +20,7 @@ const AutoSizerVerticalComponent = React.forwardRef(({onLayout,isScrollView,with
20
20
  const {height,width} = layout;
21
21
  const hasInitializedRef = React.useRef(false);
22
22
  const children = React.useStableMemo(()=>cChildren,[cChildren]);
23
+ withActivityIndicator = typeof withActivityIndicator =='boolean'? withActivityIndicator : !isScrollView;
23
24
  const updateLayout = ()=>{
24
25
  return new Promise((resolve)=>{
25
26
  hasUpdateLayoutRef.current = true;
@@ -16,14 +16,6 @@ const ScrollViewComponent = React.forwardRef(({withAutoSizer,autoSizerProps,test
16
16
  <ScrollView
17
17
  ref={ref} {...rest}
18
18
  testID={testID}
19
- onContentSizeChange = {(a,b,c,d)=>{
20
- if(rest.onContentSizeChange && rest.onContentSizeChange(a,b,c,d)===false) return;
21
- return;
22
- if(autoSizerRef.current && autoSizerRef.current.updateLayout){
23
- console.log("updating layout ",autoSizerRef.current);
24
- autoSizerRef.current.updateLayout();
25
- }
26
- }}
27
19
  style = {[{flex:1}]}
28
20
  contentContainerStyle = {[{flex:1,height:'100%'},rest.contentContainerStyle]}
29
21
  />
@@ -434,7 +434,7 @@ export default class TableDataScreenComponent extends FormDataScreen{
434
434
  }
435
435
  } else {
436
436
  mainContent = <Surface {...contentProps} testID={testID+"_MainContentContainer"} elevation={elevation} style={[styles.container,styles.noPadding,{paddingTop:0,marginTop:0}]}>
437
- <ScrollView testID={testID+"_MainContentScrollViewWithoutTab"}>
437
+ <ScrollView withAutoSizer testID={testID+"_MainContentScrollViewWithoutTab"}>
438
438
  <View testID={testID+"_MainContent"} style={[styles.screenContent,!isMobOrTab && theme.styles.p1,header?styles.screenContentWithHeader:null]}>
439
439
  {header}
440
440
  {content}