【发布时间】:2019-02-18 14:10:56
【问题描述】:
使用 Firestore 在服务器上设置数据时出现错误,请查看随附的屏幕截图。以下是代码
import firebase from 'react-native-firebase';
constructor() {
super();
this.ref = firebase.firestore().collection('Product');
}
render() {
return (
<View>
<Button title="Submit" onPress={this._navigateClick} />
</View>
);
}
_navigateClick = () => {
this.ref.add({
Desc: "Hi Hello How Are you ?",
Img: "",
Name:"Chair 123"
});
};
【问题讨论】:
-
在github.com/invertase/react-native-firebase/issues/1910 复制您的问题 - 请在此处使用所有必需信息更新您的问题。谢谢!
标签: react-native react-native-firebase