15 lines
274 B
TypeScript
15 lines
274 B
TypeScript
import { Text, View } from "react-native";
|
|
|
|
function DisplayShots({ data }) {
|
|
const renderShots = (shots) => {
|
|
return shots.map((shot) => (
|
|
<View key={shot.id}>
|
|
<Text>{shot.id}</Text>
|
|
</View>
|
|
));
|
|
};
|
|
return renderShots(data);
|
|
}
|
|
|
|
export default DisplayShots;
|