@fto-consult/expo-ui 6.8.0 → 6.8.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.8.0",
3
+ "version": "6.8.1",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -2,10 +2,9 @@
2
2
  // Use of this source code is governed by a BSD-style
3
3
  // license that can be found in the LICENSE file.
4
4
 
5
- import Screen from "$escreen";
6
- import SWRDatagrid from "../SWRDatagrid";
7
- export default function TestDataScreen({...props}){
8
- return <SWRDatagrid {...props}/>
9
- }
10
-
11
- HomeScreen.screenName = "Home";
5
+ import fields from "./fields";
6
+ import Table from "../Table";
7
+ const data = require("./data.json");
8
+ export default function TestDatagridComponent({...props}){
9
+ return <Table columns={fields} data={data.docs} {...props}/>
10
+ }
@@ -20,5 +20,4 @@ const AutoSizeVerticalList = React.forwardRef(({testID,autoSizerProps,...props},
20
20
  })
21
21
 
22
22
  AutoSizeVerticalList.displayName = "AutoSizeVerticalListComponent";
23
-
24
23
  export default AutoSizeVerticalList;
@@ -36,7 +36,10 @@ const DrawerNavigator = React.forwardRef(({content,children:customChildren,state
36
36
  }
37
37
  APP.on(APP.EVENTS.AUTH_LOGOUT_USER,onLogoutUser);
38
38
  const bindResize = Dimensions.addEventListener("change",()=>{
39
- setCurrentMedia(Dimensions.getCurrentMedia());
39
+ const cMedia = Dimensions.getCurrentMedia();
40
+ if(cMedia !== currentMedia){
41
+ setCurrentMedia(cMedia);
42
+ }
40
43
  })
41
44
  APP.on(APP.EVENTS.UPDATE_THEME,refreshItems);
42
45
  return ()=>{