Is it okay to breakup through text?

I know she's losing/lost interest in me, and we never really saw each other outside of high school, and we didn't text much either. She's said to a friend who then told me that she wants to break up (still be friends) and then maybe later date again, since she's been going through a lot. She's a shy girl and I doubt that she wants to send the text (cuz she's shy). Is it okay to send it through text? I still want to be friends and I won't do anything to hurt her feelings.