Skip to content

Latest commit

 

History

History
25 lines (23 loc) · 955 Bytes

File metadata and controls

25 lines (23 loc) · 955 Bytes
Alert.alert(
                I18n.t('notifi'),
                I18n.t('confirmUnFollow'),
                [
                    { text: I18n.t('no'), onPress: () => console.log('Cancel Pressed'), style: 'cancel' },
                    {
                        text: I18n.t('yes'), onPress: () => {
                            const token = this.props.user.token
                            unFollow(token, { userfollow: userName }).then(res=>{
                               // console.log(res)
                                if (res.success){
                                    this._refreshFlatList()
                                }else {
                                    RCTToast.showShortCenter('Error, please try again or check connect')
                                }

                            })

                        }
                    },
                ],
                { cancelable: true }
            )