diff --git a/App.js b/App.js index 63161bd..c6f222f 100644 --- a/App.js +++ b/App.js @@ -21,10 +21,10 @@ const App = () => { } return ( - + {/* */} - + {/* */} ); }; diff --git a/navigation/index.js b/navigation/index.js index 083a22b..0b00378 100644 --- a/navigation/index.js +++ b/navigation/index.js @@ -1,6 +1,6 @@ import React, { useEffect } from "react"; import { Restart } from "fiction-expo-restart"; -import { I18nManager } from "react-native"; +import { I18nManager, StatusBar } from "react-native"; import * as Linking from "expo-linking"; import Svg, { G, Path } from "react-native-svg"; import { NavigationContainer } from "@react-navigation/native"; @@ -57,7 +57,7 @@ const BottomTabNavigator = ({ theme, userProducts }) => { setHeaderShown(false); }, 600); }, []); - + return ( { case "public/setLtr": return { ...state, ltr : true }; case "public/setIsDark": - // AsyncStorage.setItem("isDark", data); return { ...state, location: false, error: null, theme: data }; case "active/video": return { diff --git a/src/screens/AR/components/Book.js b/src/screens/AR/components/Book.js index eabc780..94cd025 100644 --- a/src/screens/AR/components/Book.js +++ b/src/screens/AR/components/Book.js @@ -1,7 +1,6 @@ import { Pressable, Text, Image, Dimensions } from "react-native"; import React from "react"; import { connect } from "react-redux"; -import { useNavigation } from "@react-navigation/native"; import * as Linking from "expo-linking"; //style @@ -12,7 +11,6 @@ import Colors from "../../../constants/Colors"; const { width, height } = Dimensions.get("window"); const Book = ({ book, mobile, theme }) => { - const navigation = useNavigation(); return ( book.condition >= 2).length ? ( @@ -43,14 +38,12 @@ function Scroll({ books, mobile }) { - {books.slice(0,14).map((book, index) => ( + {books.slice(0, 14).map((book, index) => ( ))} @@ -58,21 +51,23 @@ function Scroll({ books, mobile }) { }; return ( - } - keyExtractor={(item) => item.id} - /> + {books?.length ? ( + } + keyExtractor={(item) => item.id} + /> + ) : null} ); } const mapStateToProps = (state) => ({ - mobile : state.publicApi.mobile + mobile: state.publicApi.mobile, }); export default connect(mapStateToProps, {})(Scroll); diff --git a/src/screens/Home/components/Videos.js b/src/screens/Home/components/Videos.js index 89725f1..c929ece 100644 --- a/src/screens/Home/components/Videos.js +++ b/src/screens/Home/components/Videos.js @@ -20,17 +20,24 @@ function Videos({ videos, grades, mobile, theme }) {
- ( -