You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The version of tradle/react-native-udp has been updated to 3.1.0 but it's still using ^2.1.0 after run ./node_modules/.bin/rn-nodeify --hack --install --yarn.
The same problem is also with react-native-tcp. Since it has been deprecated, it will cause the duplicate symbol issue as well (like #93). I guess it should be replaced by any active module like react-native-tcp-socket (by @Rapsssito).
The older versions of react-native-udp and react-native-tcp both contain a copy of CocoaAsyncSocket or CocoaAsyncUdpSocket which are already introduced by RN per se. New versions are using them as pod dependency to solve the problem.
After I changed them manually, the iOS project can be compiled without errors.
BUT, it will cause runtime issues, like:
Unable to resolve module `stream` from `node_modules/cipher-base/index.js`: stream could not be found within the project.
Unable to resolve module `crypto` from `node_modules/sjcl/sjcl.js`: crypto could not be found within the project.
...
Hi,
The version of
tradle/react-native-udp
has been updated to 3.1.0 but it's still using ^2.1.0 after run./node_modules/.bin/rn-nodeify --hack --install --yarn
.The same problem is also with
react-native-tcp
. Since it has been deprecated, it will cause the duplicate symbol issue as well (like #93). I guess it should be replaced by any active module likereact-native-tcp-socket
(by @Rapsssito).The older versions of
react-native-udp
andreact-native-tcp
both contain a copy ofCocoaAsyncSocket
orCocoaAsyncUdpSocket
which are already introduced by RN per se. New versions are using them as pod dependency to solve the problem.After I changed them manually, the iOS project can be compiled without errors.
BUT, it will cause runtime issues, like:
Any idea about this?
Solution
Add this to
metro.config.js
Also, any alternative lib can be added this way.
The text was updated successfully, but these errors were encountered: