You will have to raise your state up. If the first and second lists have the same parent component, store the post data on the parent and send it to each child as a prop. Or use a React context to store the post data and have your flatlists consume it with useContext.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.