As long as you get a few hours outdoors most days during childhood, it doesn't really matter (from the perspective of myopia prevention) if you spend your indoor time in front of a screen or not. And if you don't get that outdoor time, avoiding screens won't save you from myopia. Screens are not really relevant here except to the extent that they encourage children to spend less time outside. You could just as easily blame HVAC or other conveniences of modern homes that make it nicer to stay inside.