text: import React from 'react';
  import { View, Text, FlatList, Dimensions} from 'react-native';
  import styles from './styles'
  import CarItem from '../CarItem'
  import cars from './cars'
  
  
  const CarsList = (props) => {
  
      const  { } = props
  
      return (
          <View style={styles.container}> 
              <FlatList 
                  data = {cars}
                  renderItem = {({item}) => <CarItem car={item}/>}
                  showsVerticalScrollIndicator={false}
                  snapToAlignment={'start'}
                  decelerationRate={'normal'}
                  snapToInterval={Dimensions.get('window').height}
              />
          </View>
      )
  }
  
  export default CarsList;