diff --git a/package/CoreDimension.js b/package/CoreDimension.js new file mode 100644 index 00000000..f5424f2c --- /dev/null +++ b/package/CoreDimension.js @@ -0,0 +1,10 @@ +/* eslint-disable no-console */ +// eslint-disable-next-line unused-imports/no-unused-imports, no-unused-vars +import React from "react"; + +// eslint-disable-next-line import/no-unresolved +import { NativeDimension } from "@wrappid/native"; + +export default function CoreDimension(props) { + return ; +} \ No newline at end of file diff --git a/package/store/CoreProvider.js b/package/store/CoreProvider.js index 84e3834d..5c883840 100644 --- a/package/store/CoreProvider.js +++ b/package/store/CoreProvider.js @@ -1,5 +1,5 @@ // eslint-disable-next-line unused-imports/no-unused-imports, no-unused-vars -import React from "react"; +import React, { useState } from "react"; import { configureStore } from "@reduxjs/toolkit"; // eslint-disable-next-line import/no-unresolved @@ -15,6 +15,7 @@ import thunk from "redux-thunk"; import CoreContextProvider from "./CoreContextProvider"; import coreReducer from "./reducers/rootReducer"; import { IconContext } from "../config/contextHandler"; +import CoreDimension from "../CoreDimension"; import CoreClasses from "../styles/CoreClasses"; import DefaultCoreStyles from "../styles/DefaultCoreStyles"; import LargeCoreStyles from "../styles/LargeCoreStyles"; @@ -83,6 +84,7 @@ export default function CoreProvider(props) { const [store, setStore] = React.useState(null); const [persistor, setPersistor] = React.useState(null); + const [dimensions, setDimensions] = useState({}); React.useEffect(() => { let { store, persistor } = createFullStore( @@ -109,24 +111,26 @@ export default function CoreProvider(props) { return store && persistor && ( - - - - - {children} - - - - + + + + + + {children} + + + + + ); }