小编Vit*_*uza的帖子

react-native 动画节点错误

我的项目有问题。

标签为 7 的动画节点不存在

类型错误:预期的动态类型为“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

5
推荐指数
1
解决办法
6360
查看次数

标签 统计

react-native ×1