You can do this by creating 2 SkylinkJS object instances. One instance for the screen share and the other for the camera.
You may wish to refer to the multi-stream feature in our sample app. You may also wish to refer to our demo showcasing the same.
Other articles you may be interested in: How can I change the resolution of the screen-sharing stream?