can peer js connect with react native ?
there are any client ?
No native clients exist. but some people suggest to host a webview:
https://stackoverflow.com/a/28370368
Hello have one tried creating react native version for this?
I don't thin react native has the same webrtc API than the browsers.
So it would be like creating a whole new library
El vie., 22 mar. 2019 8:17, Marcus Jason notifications@github.com
escribió:
Hello have one tried creating react native version for this?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/peers/peerjs/issues/418#issuecomment-475517581, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADrV0hsKnGEqSGoR3jkKM0ERHy2asq5uks5vZIN1gaJpZM4RzZuy
.
@geraldsamosir Have you ever try oney/react-native-webrtc
I don't thin react native has the same webrtc API than the browsers.
@geraldsamosir Have you ever try oney/react-native-webrtc
Interesting enough, oney/react-native-webrtc (now react-native-webrtc/react-native-webrtc) is a React Native module that provides the API to React Native. Meaning, PeerJS could then also work for React Native.
PeerJS, however, relies on the window
object and would therefore not run in a React Native app without further modifications. But the Browser Web API for WebRTC is there. Just need tot make PeerJS not rely on the Browser environment.
Then again there's web-mech/peerjs-nodejs which is PeerJS for Node which wouldn't require window
to be there. This might work in a React Native world. Edit: It relies on an Electron process which doesn't work in React Native, I guess.
I put myself to it: https://github.com/Zemke/react-native-peerjs
Most helpful comment
I put myself to it: https://github.com/Zemke/react-native-peerjs