import React, { useRef } from "react"; import { View, StyleSheet, ScrollView } from "react-native"; import ImageInput from "./ImageInput"; function ImageInputList({ imageUris = [], onRemoveImage, onAddImage }) { const scrollView = useRef(); return ( scrollView.current.scrollToEnd()} > {imageUris.map((uri) => ( onRemoveImage(uri)} /> ))} onAddImage(uri)} /> ); } const styles = StyleSheet.create({ container: { flexDirection: "row", }, image: { marginRight: 10, }, }); export default ImageInputList;