react native socket.io-client 没有连接到 Release build 上的 https 服务器

react native socket.io-client doesn't connected to https server on Release build

反应本机信息

System:
    OS: Windows 10 10.0.18363
    CPU: (8) x64 Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
    Memory: 8.28 GB / 15.85 GB
  Binaries:
    Node: 12.14.1 - C:\Program Files\nodejs\node.EXE
    npm: 6.13.4 - C:\Program Files\nodejs\npm.CMD
  IDEs:
    Android Studio: Version  3.5.0.0 AI-191.8026.42.35.6010548
  npmPackages:
    react: 16.9.0 => 16.9.0
    react-native: ^0.61.5 => 0.61.5

socket.io-客户端版本

"socket.io-client": "^2.3.0",

我的代码

const EVENT_SERVER = 'https://my.prod.server';

socketInstance = SocketIOClient(EVENT_SERVER, {
    forceNew: false,
    transports: ['websocket'],
    reconnection: true,
  });

问题

如果我构建 debug mode 连接到我的 https 服务器。但是 release mode 无法连接到我的 https 服务器。

我能做什么?给我一些建议..!

我解决了这个问题!

问题是console.dir()功能console.dir()功能不支持发布模式。