How to add picture-in-picture function?

Hi, I want to have my app to resize to a small window and run alongside another app the users chooses, like how you can shrink a youtube video window and open other app at the same time. How can I do it in Expo?


It may sound gimmicky, but it’s a nice feature for heavy multitaskers who jump from app to app. PiP is also convenient if you want to casually watch a video rather than pay full attention.