Hydrocodone While Breastfeeding

li

My dr prescribed me hydrocodones but my friend is telling me this is bad for baby since I’m breastfeeding. Has anyone been prescribed and been ok?