import React, { useState } from "react"; import { View, ImageBackground } from "react-native"; import CardStack, { Card } from "react-native-card-stack-swiper"; import { City, Filters, CardItem } from "../components"; import styles from "../assets/styles"; import DEMO from "../assets/data/demo"; const Home = () => { const [swiper, setSwiper] = useState(null); return ( null} ref={(newSwiper): void => setSwiper(newSwiper)} > {DEMO.map((item) => ( ))} ); }; export default Home;