@fto-consult/expo-ui 6.10.0 → 6.10.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": "6.10.0",
3
+ "version": "6.10.1",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -288,7 +288,6 @@ class SwiperComponent extends React.Component {
288
288
  const autoHeight = !!this.props.autoHeight;
289
289
  const height = autoHeight ? undefined : !isReady ? WIDTH_HEIGHT : customHeight;
290
290
  if(withScrollView){
291
- wrapperProps.nestedScrollEnabled = typeof wrapperProps.nestedScrollEnabled ==="boolean"? wrapperProps.nestedScrollEnabled : isNative;
292
291
  if(typeof wrapperProps.showsVerticalScrollIndicator !=='boolean'){
293
292
  wrapperProps.showsVerticalScrollIndicator = !isNative;
294
293
  }
@@ -377,11 +377,7 @@ export default class TableDataScreenComponent extends FormDataScreen{
377
377
  const isMobile = isMobileOrTabletMedia();
378
378
  const contentProps = restProps.contentProps;
379
379
  const elevation = restProps.elevation;
380
- const renderingTabsProps = {tabs,data:this.getCurrentData(),tabsPropsMutator:({tabs,tabsProps})=>{
381
- if(!isMobileOrTabletMedia()){
382
- tabsProps.withScrollView = false;
383
- }
384
- },isMobile,sessionName:this.getSessionName(),props:restProps,tabProps,tabsProps,context,tabKey};
380
+ const renderingTabsProps = {tabs,data:this.getCurrentData(),isMobile,sessionName:this.getSessionName(),props:restProps,tabProps,tabsProps,context,tabKey};
385
381
  const hasTabs = Object.size(tabs,true);
386
382
  let mainContent = undefined;
387
383
  testID = defaultStr(testID,"RN_TableDataScreenItem_"+restProps.tableName);
@@ -430,7 +426,7 @@ export default class TableDataScreenComponent extends FormDataScreen{
430
426
  appBarProps.elevation = 0;
431
427
  restProps.elevation = 0;
432
428
  }
433
- return <ScreenContainer {...restProps} withScrollView={false} appBarProps = {appBarProps} testID={testID}>
429
+ return <ScreenContainer {...restProps} appBarProps = {appBarProps} testID={testID}>
434
430
  {this.wrapRenderingContent(mainContent,{testID})}
435
431
  </ScreenContainer>
436
432
  }
@@ -8,7 +8,7 @@ import {getTableDataRouteName} from "$enavigation/utils";
8
8
  //@seee : https://github.com/typeorm/typeorm/blob/master/src/entity-schema/EntitySchemaColumnOptions.ts
9
9
  export const generatedColumnsProperties = ["createDate","updateDate","deleteDate","createBy","updateBy","deleteBy"]
10
10
 
11
- export const renderTabsContent = ({tabs,context,data,sessionName,tabsPropsMutator,isMobile,props,firstTab,tabKey,tabProps,tabsProps})=>{
11
+ export const renderTabsContent = ({tabs,context,data,sessionName,isMobile,props,firstTab,tabKey,tabProps,tabsProps})=>{
12
12
  let tabsArr = [],hasFirstTab = false;
13
13
  if(React.isValidElement(firstTab)){
14
14
  tabsArr.push(firstTab);
@@ -52,9 +52,6 @@ export const renderTabsContent = ({tabs,context,data,sessionName,tabsPropsMutato
52
52
  })
53
53
  }
54
54
  if(tabsArr.length> (hasFirstTab ? 1 : 0)){
55
- if(typeof tabsPropsMutator =='function' && tabsPropsMutator({tabsProps,tabs:tabsArr,hasFirstTab}) === false){
56
- return null;
57
- }
58
55
  return <Tab testID={testID}
59
56
  {...tabsProps}
60
57
  onChange={(args)=>{