Huh. I am admittedly neither a doctor nor chemist, but I was told this by a doctor, and anecdotally bananas seem to help me with reflux. Looking on the web, there does seem to be conflicting advice.
It depends. There are varieties of bananas & plantains that are high in latex, and can cause reflux and allergies for some people.