How to use the @ant-design/react-native.Portal.remove function in @ant-design/react-native

To help you get started, we’ve selected a few @ant-design/react-native examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github czy0729 / Bangumi / utils / fetch.js View on Github external
.then(res => {
      // 开发模式
      if (isDev) {
        Alert.alert(
          'dev',
          `${JSON.stringify(_url)} ${JSON.stringify(_config)} ${res._bodyInit}`
        )
      }
      if (!isGet) log(method, 'success', _url, _config, res)
      if (toastId) Portal.remove(toastId)
      return Promise.resolve(res.text())
    })
    .catch(err => {
github czy0729 / Bangumi / utils / fetch.ios.js View on Github external
request.onreadystatechange = () => {
    if (request.readyState !== 4) {
      return
    }

    if (toastKey) {
      Portal.remove(toastKey)
    }
    if (request.status === 200) {
      success(request.responseText)
    } else {
      fail()
    }
  }
github czy0729 / Bangumi / utils / fetch.ios.js View on Github external
.catch(err => {
      if (systemStore.state.dev) {
        Alert.alert(
          `${JSON.stringify(_url)} ${JSON.stringify(_config)} ${JSON.stringify(
            err
          )}`
        )
      }
      if (toastKey) {
        Portal.remove(toastKey)
      }

      return Promise.reject(err)
    })
}
github czy0729 / Bangumi / utils / fetch.js View on Github external
request.onreadystatechange = () => {
    if (request.readyState !== 4) {
      return
    }

    if (toastId) {
      Portal.remove(toastId)
    }

    if (request.status === 200) {
      success(request.responseText)
    } else {
      fail(request)
    }
  }

@ant-design/react-native

基于蚂蚁金服移动设计规范的 React Native 组件库

MIT
Latest version published 2 months ago

Package Health Score

79 / 100
Full package analysis