【发布时间】:2020-02-27 19:36:43
【问题描述】:
httpURI = 'http://17.25.16.68:4000/graphql' //example
const httpLink = createHttpLink({ uri: httpURI });
const client = new ApolloClient({ link:httpLink, cache: new InMemoryCache() });
连接在调试模式下工作,但是当我在发布时运行它时,没有建立连接。
我是否需要在 Android 版本配置中的某处启用传出连接?
【问题讨论】:
-
也许..这个问题是HTTP错误请参考github.com/facebook/react-native/issues/…
标签: android react-native http graphql apollo