cannot use in react-native
Closed this issue · 4 comments
geoff8888 commented
Hi, trying to port it to RN 0.71.X
There's no error message, but just using "new Pusher" in the code will cause the whole class to fail. You cannot instantiate it.
import Pusher from 'pusher-js/react-native';
...
const client = new Pusher(options.key, options); //instantiating new class containing this will fail, haven't run this line yet
//Changed it to confirm the problem
const client:any = {}; //OK!
Thanks!
geoff8888 commented
Hi, trying to port it to RN 0.71.X
There's no error message, but just using "new Pusher" in the code will cause the whole class to fail. You cannot instantiate it.
import Pusher from 'pusher-js/react-native'; ... const client = new Pusher(options.key, options); //instantiating new class containing this will fail, haven't run this line yet //Changed it to confirm the problem const client:any = {}; //OK!
Thanks!
Ok, apparently, it has been moved to https://github.com/pusher/pusher-websocket-react-native/
it works on 7.1.1-beta
Stevemoretz commented
That is even more useless than this one
pusher/pusher-websocket-react-native#75
fbenevides commented
hey all, can you please update to the latest version (8.0.2)?
geoff8888 commented
hey all, can you please update to the latest version (8.0.2)?
Thanks a lot!