I read that anjeer is one among the 5 prohibited fruits
There is no universal Jain scripture-based list saying that anjeer (fig) is one of five prohibited fruits. In Jainism, the main dietary restrictions focus more on non-violence to living beings, avoiding root vegetables, and following vows during specific observances. Fruits in general are treated as acceptable, though local or sectarian practices may introduce additional cautions during special vows or fasts. The exact restrictions can differ between Digambar and Śvetāmbar traditions and among different monastic communities.
If you’d like, I can look up a precise reference in Jain scriptures or commentaries to cite a specific position from a Digambar or Śvetāmbar viewpoint.