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