我的项目有问题。
类型错误:预期的动态类型为“double”,但类型为“null”
在呈现此表单之前,应用程序会不时出现错误,但并不总是出现错误。我认为只有当互联网不是很好。但我希望能够处理这个错误,所以它不会出现在用户面前。
我的代码如下。
表单主体.js
import React, { Component } from 'react';
import { View, Text, ScrollView, Alert, BackHandler } from 'react-native';
import RNExitApp from 'react-native-exit-app';
import ScrollableTabView from 'react-native-scrollable-tab-view';
import { Actions } from 'react-native-router-flux';
import axios from 'axios';
import { connect } from 'react-redux';
import { modificaToken, modificaConsultas, modificaScene } from '../actions/AutenticacaoActions';
import FormFaturamento from './FormFaturamento';
import FormListaConsultas from './FormListaConsultas';
class formPrincipal extends Component {
componentWillMount() {
BackHandler.addEventListener('hardwareBackPress', this.handleAndroidBack)
}
componentWillUnmount() {
BackHandler.removeEventListener('hardwareBackPress', this.handleAndroidBack)
} …Run Code Online (Sandbox Code Playgroud) react-native ×1