Depending on the nature of the condition you have a few options
If it’s bone related: Make sure to see a doctor for proper diagnosis. Stress injuries can become stress fractures, which can sideline you for a long time. Also, it’s critical that you employ dynamic rest. Find another activity that doesn’t load your legs. Swimming and stationary biking are good choices.
If it’s muscular: Two words: Foam roll. Part of the problem with shin splints is tight fascia, the tough material that wraps most of our muscles. Run your shins and calves over a foam roller for several minutes several times a day to help loosen the fascia. Manual massage can help as well.