@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
|
@@ -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
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
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
|
+
}
|
|
@@ -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
|
-
|
|
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 ()=>{
|