You might be making two assumptions here. First, how do you know your friend is not wanting to txt you or is pushing you away? Assumptions are one of the leading causes of miscommunication, so don't make them. If they are true, have a better communication than txting and if still true, then give your friend their space
Just give her some space. If she is mad then don't worry it will blow over. Maybe she just wants to hang out with some other friends for a while. If she is truly a friend then 1.) she would talk to you without having problems. 2.) she wouldn't be acting like that in the first place. Sorry.
Maybe theres something wrong with them? Try to confront them the best you can and let them know that your there for them no matter what. If theres nothing wrong then maybe they werent such a good friend in the first place and you need to find a new one. Sorry