Te mandaría PR pero que weba jajaja asi que solo pegaré por aqui el codigo del método:
`agregarItem = () => {
let nuevo = this.state.nuevo
// Get a key for a new Post.
let newPostKey = firebase.database().ref().child('items').push().key;
nuevo = {
id:newPostKey,
name:nuevo,
done:false
};
// Write the new post's data simultaneously in the posts list and the user's post list.
let updates = {};
updates['/items/' + newPostKey] = nuevo;
return firebase.database().ref().update(updates);
//firebase.database().ref('items').push(nuevo);
this.state.lista.push(nuevo);
this.setState({lista: this.state.lista});
console.log(nuevo);
}`
Tenias un error en agregar item carnal.
Te mandaría PR pero que weba jajaja asi que solo pegaré por aqui el codigo del método:
`agregarItem = () => { let nuevo = this.state.nuevo