使用create-react-app启动了一个项目。已安装的react-native:“ ^ 0.57.8”,react-native-elements:“ ^ 0.19.1”和react-native-vector-icons:“ ^ 6.1.0”。为了能够在项目中的本机元素中使用组件。
运行时,npm start我得到下面粘贴的错误代码。我已经阅读了react-native-elements文档,但似乎找不到任何可以帮助我的东西
./node_modules/react-native-elements/src/avatar/Avatar.js
SyntaxError: D:\Location-Map\Neighborhood-Map-2-\location-
app\node_modules\react-native-elements\src\avatar\Avatar.js: Unexpected
token (92:8)
90 |
91 | return (
> 92 | <TouchableHighlight
| ^
93 | style={[
94 | styles.editButton,
95 | editButtonSizeStyle,
Run Code Online (Sandbox Code Playgroud)