Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- firebase.firestore().collection('d').doc(deviceid).delete().then(function () {
- console.log("Device Deleted");
- that.setState({
- loading: false
- });
- Toast.show('Device Deleted Succesfully', {
- duration: Toast.durations.SHORT,
- position: Toast.positions.TOP,
- shadow: true,
- animation: true,
- hideOnPress: true,
- delay: 0,
- });
- }).catch(function (err) {
- console.log(err);
- that.setState({
- loading: false
- });
- })
Add Comment
Please, Sign In to add comment