【发布时间】:2018-03-11 07:05:27
【问题描述】:
有人可以帮忙解决这个解析错误吗,我已经关闭了 View 标签,但它仍然抛出错误。
import React from 'react';
import { AppRegistry, View } from 'react-native';
import Header from './src/components/header';
import Albumlist from './src/components/Albumlist';
const App = () => (
<View>
<Header headerText={'Albums'} />
<Albumlist />
</View> //The error is displayed in this line of the code!
);
AppRegistry.registerComponent('albums', () => App);
【问题讨论】:
-
这很可能是由于被引用的组件之一没有被正确终止,导致整个事情没有被终止。
-
组件单独运行良好,但在查看选项卡下解析时不起作用
标签: reactjs react-native jsx