diff --git a/src/screens/Blog/index.js b/src/screens/Blog/index.js index aca360e..4cf2273 100644 --- a/src/screens/Blog/index.js +++ b/src/screens/Blog/index.js @@ -9,7 +9,6 @@ import { StyleSheet, Platform, Dimensions, - Appearance, StatusBar, } from "react-native"; import { WebView } from "react-native-webview"; @@ -29,11 +28,9 @@ import fontSize from "../../constants/fontSize"; import Colors from "../../constants/Colors"; const ios = Platform.OS === "ios"; -const { height, width } = Dimensions.get("window"); - -export const Blog = ({ getInfo, blog, getList, blogs, route }) => { - const colorScheme = Appearance.getColorScheme(); +const { width } = Dimensions.get("window"); +export const Blog = ({ getInfo, blog, getList, blogs, route, theme }) => { useEffect(() => { getInfo({ id: route.params.id }); if (blogs.length === 0) { @@ -100,7 +97,7 @@ export const Blog = ({ getInfo, blog, getList, blogs, route }) => { { { { { const mapStateToProps = (state) => ({ blog: state.blog.blog, blogs: state.blog.list, + theme: state.publicApi.theme }); const mapDispatchToProps = {