|
|
@ -1,17 +1,14 @@ |
|
|
|
import React, { useState, useEffect } from "react"; |
|
|
|
import React, { useState } from "react"; |
|
|
|
import { connect } from "react-redux"; |
|
|
|
import { connect } from "react-redux"; |
|
|
|
import { asyncAwesomeAlert } from "../../utils/AsyncWrappers"; |
|
|
|
|
|
|
|
import { useNavigation } from "@react-navigation/native"; |
|
|
|
import { useNavigation } from "@react-navigation/native"; |
|
|
|
import { |
|
|
|
import { |
|
|
|
View, |
|
|
|
View, |
|
|
|
StyleSheet, |
|
|
|
StyleSheet, |
|
|
|
Dimensions, |
|
|
|
|
|
|
|
ScrollView, |
|
|
|
ScrollView, |
|
|
|
SafeAreaView, |
|
|
|
SafeAreaView, |
|
|
|
Platform, |
|
|
|
Platform, |
|
|
|
StatusBar, |
|
|
|
StatusBar, |
|
|
|
LayoutAnimation, |
|
|
|
LayoutAnimation, |
|
|
|
BackHandler, |
|
|
|
|
|
|
|
} from "react-native"; |
|
|
|
} from "react-native"; |
|
|
|
|
|
|
|
|
|
|
|
//components
|
|
|
|
//components
|
|
|
@ -29,7 +26,6 @@ import tw from "tailwind-rn"; |
|
|
|
// Within your render function
|
|
|
|
// Within your render function
|
|
|
|
const Home = ({ route, blogs, books, userProducts, mobile }) => { |
|
|
|
const Home = ({ route, blogs, books, userProducts, mobile }) => { |
|
|
|
const [position, setPosition] = useState("100%"); |
|
|
|
const [position, setPosition] = useState("100%"); |
|
|
|
const navigation = useNavigation(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const setBoxPosition = () => { |
|
|
|
const setBoxPosition = () => { |
|
|
|
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut); |
|
|
|
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut); |
|
|
@ -40,7 +36,6 @@ const Home = ({ route, blogs, books, userProducts, mobile }) => { |
|
|
|
<SafeAreaView |
|
|
|
<SafeAreaView |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
|
paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0, |
|
|
|
paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0, |
|
|
|
position: "relative", |
|
|
|
|
|
|
|
flex: 1, |
|
|
|
flex: 1, |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|