railbird-gql/component/display-shot.tsx
2024-01-08 23:52:08 -07:00

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;