import React from "react"; import { View, Text, StyleSheet, Button,ScrollView} from "react-native"; import colors from '../../../colors' import styled from "styled-components/native"; import ImageCarousel from '../../components/Carousel' export default function Detail (props) { const {route,navigation}=props console.log(route.params.name) const goTo = () => navigation.navigate("stackMap"); return ( <ScrollView contentContainerStyle={{ alignItems: 'center' }} style={{ flex: 1, width: '100%' }} showsVerticalScrollIndicator={false} > <View style={styles.carousel} > <ImageCarousel /> </View> <Button onPress={goTo} title={`Go to maps`} /> </ScrollView> ); } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: "azure", alignItems: "center", justifyContent: "center", }, carousel: { }, });