I’m not entirely sure of all the specifics but theres an example here.
You also need to use this pre-release version of the RN WebRTC module as the new track and transceivers handling is required.