运行react native遇到的小问题:
A problem occurred configuring project ':app'.
> Cannot evaluate module react-native-android-intent : Configuration with name 'default' not found.
删除build.gradle中 compile project(':react-native-android-intent'), 再npm install
E/ReactNativeJS: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
语法混乱搭配导致.
es6 语法导出:
export default class App extends Component
导入: import App from './App';
如果不加export default ,那么在导入的时候App外需加{}
Adjacent JSX elements must be wrapped in an enclosing tag.
render方法中必须只能包含一个根元素。
确认render方法返回的是一个容器组件