How to use @sishuguojixuefu/antd-mobile-rn - 3 common examples

To help you get started, we’ve selected a few @sishuguojixuefu/antd-mobile-rn 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 sishuguojixuefu / react-native-form / docs / FormScreen.tsx View on Github external
if (error) {
        return
      }
      const loading = Toast.loading('提交中...', 0)
      try {
        // 对请求参数进行处理
        const jsonParams = { ...values }
        // await API(jsonParams)
        Toast.success('提交成功', 2, () => {
          // 提交成功后的逻辑
          NavigationService.goBack()
        })
      } catch (e) {
        console.log('FormInfo:', error)
      } finally {
        Portal.remove(loading)
      }
    })
  }
github sishuguojixuefu / react-native-form / docs / FormScreen.tsx View on Github external
this.form.validateFields(async (error, values) => {
      if (error) {
        return
      }
      const loading = Toast.loading('提交中...', 0)
      try {
        // 对请求参数进行处理
        const jsonParams = { ...values }
        // await API(jsonParams)
        Toast.success('提交成功', 2, () => {
          // 提交成功后的逻辑
          NavigationService.goBack()
        })
      } catch (e) {
        console.log('FormInfo:', error)
      } finally {
        Portal.remove(loading)
      }
    })
  }
github sishuguojixuefu / react-native-form / docs / FormScreen.tsx View on Github external
this.form.validateFields(async (error, values) => {
      if (error) {
        return
      }
      const loading = Toast.loading('提交中...', 0)
      try {
        // 对请求参数进行处理
        const jsonParams = { ...values }
        // await API(jsonParams)
        Toast.success('提交成功', 2, () => {
          // 提交成功后的逻辑
          NavigationService.goBack()
        })
      } catch (e) {
        console.log('FormInfo:', error)
      } finally {
        Portal.remove(loading)
      }
    })
  }

@sishuguojixuefu/antd-mobile-rn

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

MIT
Latest version published 3 years ago

Package Health Score

46 / 100
Full package analysis