Picture-in-picture mode for webRTC videos

Is there a way to allow PiP mode for webRTC videos? Are there examples or documents that would help set this up in an ios application using react-native-webrtc?