Animal experiments have shown that the eye adapts to focusing distances and specific wavelenghts can induce more myopia than others.
There is also some evidence that UV radiation breaks down growth hormones.
This means computer screens and books don't matter, only time spent outdoors with a bright sun has protective effects. Alternatively you can get one of those ortho K lenses that prevent myopia from getting significantly worse when you are a child, they are very expensive though for something that our body should do for free.