I'm using the react-native-opentok from callstakio, when I use only Subscriber it works normal, but when used subscriber + publisher the subscriber does not work correctly.
render() {
return (
<View>
<SubscriberView
apiKey={OPENTOK_API_KEY}
sessionId={SESSION_ID}
token={PUBLISHER_TOKEN}
style={{ width: x, height: y-200}}
/>
<PublisherView
apiKey={OPENTOK_API_KEY}
sessionId={SESSION_ID}
token={PUBLISHER_TOKEN}
style={{ width: x, height: 200}}
/>
</View>
);
}
}