The prevailing currents in the Pacific Ocean do flow from South America to a bunch of the Pacific islands, not the other way.
Peppers are native to arid areas, so they wouldn't be expected to get distributed by ocean currents. Corn has only existed relatively recently and spread to western South America even more recently than that. I'm not sure about tomatoes or potatoes. I suspect that tomato varieties which existed before the late 20th century spoiled too quickly to make it that far drifting on the ocean, and I'd expect birds that swallowed their seeds to excrete them over open water before getting to the islands or just not even go that way because they don't follow ocean currents. Potatoes can probably float that far but I think they'd need to be buried in order to sprout, and naturally floating to an island doesn't result in burial. Potato plants do produce fruits & seeds, but they're tiny, so spreading them across the ocean would depend on the same birds as tomatoes.