react-native-socketio icon indicating copy to clipboard operation
react-native-socketio copied to clipboard

React Native 0.29+ compatibility

Open awinogrodzki opened this issue 8 years ago • 3 comments

There is some issues with Socket.swift file which is deprecated with the newest version of RN and Swift, this sometimes causes crashes in development environment and prevents smooth debugging. Also I had many issues to install the libraries with Xcode. Maybe it's a good idea to use RNPM library to link it automatically?

awinogrodzki avatar Aug 11 '16 10:08 awinogrodzki

How did you solve the issues in Socket.swift?

kitolog avatar Sep 07 '16 09:09 kitolog

I got ...react-native-socketio/ios/RNSwiftSocketIO/Socket.swift:67:21: Method 'eventDispatcher' was used as a property; add () to call it

kitolog avatar Sep 07 '16 09:09 kitolog

I made a PR that makes this library compatible with RN 0.29+ plus some other things like multiple event handlers/socket support: https://github.com/gcrabtree/react-native-socketio/pull/46 Hope it lands.

saalihou avatar Jun 14 '18 00:06 saalihou