expo不包含名为WebBrowser的导出

时间:2018-06-15 10:33:47

标签: react-native expo

我有使用Expo.WebBrowser的基本示例,它给出了错误:

import { WebBrowser } from 'expo'

'expo' does not contain an export named 'WebBrowser'

依赖关系:

"buffer": "^5.1.0", "color-hash": "^1.0.3", "debug": "^3.1.0", "eventemitter2": "^5.0.1", "expo": "^27.0.2", "mobx": "^4.3.0", "mobx-react": "^5.1.2", "moment": "^2.22.1", "mqtt": "^2.18.0", "react": "^16.2.0", "react-app-rewire-mobx": "^1.0.8", "react-dom": "^16.2.0", "react-native": "^0.52.2", "react-native-elements": "^0.19.1", "react-native-render-html": "^3.10.0", "react-native-side-menu": "^1.1.3", "react-native-storage": "^0.2.2", "react-native-swipeout": "^2.3.3", "react-native-web": "^0.3.2", "react-native-web-webview": "^0.2.5", "react-router-native": "^4.2.0", "react-scripts": "1.1.0", "svgs": "^3.1.2"

1 个答案:

答案 0 :(得分:0)

在浏览器环境中看起来WebBrowser不可用。

使用'react-native-web'会导致import { WebBrowser } from 'expo'失败。