Guest User

Untitled

a guest
May 26th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. firebase.firestore().collection('d').doc(deviceid).delete().then(function () {
  2. console.log("Device Deleted");
  3. that.setState({
  4. loading: false
  5. });
  6. Toast.show('Device Deleted Succesfully', {
  7. duration: Toast.durations.SHORT,
  8. position: Toast.positions.TOP,
  9. shadow: true,
  10. animation: true,
  11. hideOnPress: true,
  12. delay: 0,
  13. });
  14.  
  15. }).catch(function (err) {
  16. console.log(err);
  17. that.setState({
  18. loading: false
  19. });
  20. })
Add Comment
Please, Sign In to add comment