The usual advice is that the virus survives up to 3 days on hard surfaces like steel or plastic, and up to 12 hours on soft surfaces like cardboard and cloth. That's in lab conditions. Probably less in the real world, especially if exposed to sunlight. It can't reproduce in onions or other veg - it needs a living animal host, and only specific animals, mainly humans. So it should be fine to treat fruit as an other surface and just not touch it for a suitable time.
_________________________
Quality is addictive.