大家好,我尝试在我的应用程序中运行这个教程https://firebase.googleblog.com/2016/01/the-beginners-guide-to-react-native-and_84.html,但我有一些错误。

我的代码是:
import React, {Component} from 'react';
import ReactNative from 'react-native';
import * as firebase from 'firebase';
const StatusBar = require('./components/StatusBar');
const ActionButton = require('./components/ActionButton');
const ListItem = require('./components/ListItem');
const styles = require('./styles.js');
_renderItem(item)
{
return(
<ListItem item="{item}"
onpress="{()" ==""> {}}/>
);
}发布于 2016-11-07 23:02:21
在React中,您不必在动态参数上加引号:
<ListItem item={item} onpress={() => {}}/>我不知道你是怎么来的:"{()" ==""> {。也许是复制/过去的不良行为。
https://stackoverflow.com/questions/40467040
复制相似问题