Epic has more revenue streams than just Apple's ecosystems.
I mean if they’re no longer on good terms with Apple or Google that has to be a big chunk of their revenue stream?
They produce one of the top Cross Platform Game Engines, and produce many high quality games, including Fortnite which was massive well before any mobile version was produced.