I decided to use expo-three which is a utility for using three.js library in expo apps.
https://github.com/expo/expo-three
Then I just copied example from three examples repo
https://github.com/mrdoob/three.js/blob/dev/examples/webgl_panorama_equirectangular.html
and translated it into expo world.
Both expo-three and three.js are good, maintained libraries and I believe they will not stop working in the near future.