当我在react nativ上导入MapView时,我的应用程序给我错误
这是我的代码:
`import MapView from 'react-native-maps'`
只是这样导入它就会给我带来错误[{3}}
这是我的爱好:
"dependencies": {
"react": "16.6.1",
"react-native": "0.57.7",
"react-native-maps": "^0.22.1",
"react-native-router-flux": "^4.0.6"
},
Opening /Users/Desktop/snl/reactNative/ChatApp/node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js with /Applications/Sublime Text.app/Contents/SharedSupport/bin/subl
BUNDLE [ios, dev] ../../index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (1/1), done.
BUNDLE [ios, dev] ../../index.js ░░░░░░░░░░░░░░░░ 0.0% (0/1)::1 - - [09/Dec/2018:08:42:21 +0000] "GET /index.bundle?platform=ios&dev=true&minify=false HTTP/1.1" 200 - "-" "ChatApp/1 CFNetwork/975.0.3 Darwin/17.7.0"
::1 - - [09/Dec/2018:08:42:24 +0000] "POST /symbolicate HTTP/1.1" 200 - "-" "ChatApp/1 CFNetwork/975.0.3 Darwin/17.7.0"
::1 - - [09/Dec/2018:08:42:25 +0000] "POST /symbolicate HTTP/1.1" 200 - "-" "ChatApp/1 CFNetwork/975.0.3 Darwin/17.7.0"
^[[1;2D