Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Use single Socket.io instance throughout the entire application. React native typescript

$
0
0

I have built an app in react native and I need to use only one instance of socket io for each user. How do I pass it. I don't think passing it as props to components is a good idea. I thought about storing it inside a context but also this is not a good idea. Any suggestions.

Thank you in advance.


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>