As with acid reflux, eating acidic foods can irritate gastritis.  Ripe mangoes typically have a high enough pH, however, that they should be fine for most people with gastritis.