You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

30 lines
723 B

import React from "react";
import { View, StyleSheet, Dimensions, ScrollView } from "react-native";
import data from "./data";
import Identifier from "./components/Identifier";
// Within your render function
function Home() {
return (
<ScrollView contentContainerStyle={styles.contentContainerStyle} style={styles.container}>
{data?.map((item, i) => (
<Identifier {...item} key={i} />
))}
</ScrollView>
);
}
// Later on in your styles..
const styles = StyleSheet.create({
contentContainerStyle: {
paddingBottom: 50
},
container: {
width: Dimensions.get("window").width,
backgroundColor: "white",
flexDirection: "column",
padding: 5,
}
});
export default Home;