opentok / opentok-react-native

OpenTok React Native - a library for OpenTok iOS and Android SDKs
https://tokbox.com/
MIT License
210 stars 155 forks source link

Insert publisher data in state instead of boolean #770

Open Vagnxr opened 3 weeks ago

Vagnxr commented 3 weeks ago

https://github.com/opentok/opentok-react-native/blob/25b3d09e0da9a365fb1c5a1e68640343ae9cbe1a/src/OTPublisher.js#L162

Hello, I want to make an improvement to this piece of code, storing initPublisher() in a variable to save the publisher instance and place it in the publisher state instead of a boolean. I'm having difficulties using the library because I don't have the publisher instance, I need to use the getRtcStatsReport method.