Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- handleSubmit(){
- fb.firestore().collection("businessDetails").add({
- category: this.state.bCategory,
- description: this.state.bDescription,
- name: this.state.bName,
- since: this.state.bEstablished,
- phone: this.state.bPhone,
- uid: this.state.uid
- })
- .then(()=>{
- console.log("User succesfully submitted, data recorded");
- })
- .catch((error)=>{
- console.log(error);
- })
- }
- <Footer>
- <FooterTab>
- <Button onPress={()=>this.handleSubmit()}
- disabled={!this.state.flag} full
- style={(this.state.flag)?styles.submitButton:[]}
- >
- <Text style={styles.buttonText}>Submit and Signup</Text>
- </Button>
- </FooterTab>
- </Footer>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement