Last active
June 6, 2017 02:25
-
-
Save andrewrjohn/c3fc6c88ef5aa800fb57adb92f34c6eb to your computer and use it in GitHub Desktop.
kettleapp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onChangeText={text => this.updateContent(text)} | |
updateContent(newText) { | |
this.setState({ contentText: newText }); | |
firebase.database().ref('kettles/' + this.state.currentKettle + '/').set({ | |
content: newText | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One note, I would move the function in: