railbird-gql/component/display-shot.tsx

15 lines
274 B
TypeScript
Raw Normal View History

2024-01-08 22:14:21 -07:00
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;