Victory-native: crash on iOS simulator + physical device

Created on 6 Dec 2017  路  8Comments  路  Source: FormidableLabs/victory-native

Expo version: 23.0.0

demo

Component:

Child

import React, { Component } from 'react';
import { View } from 'react-native';
import { VictoryChart, LineChart } from 'victory-native';

class CoinChart extends Component {
    render() {
        return (
          <VictoryChart />
        );
    }
}

export default CoinChart;

Parent:

import React, { Component } from 'react';
import { View, Text, StyleSheet } from 'react-native';
import { connect } from 'react-redux'

import CoinChart from './CoinChart';

class SingleCoinContainer extends Component {

    renderChart = () => {
        const { singleCoin } = this.props;
        return <CoinChart /> // will pass props here
    }

    render() {

        return (
            <View>
                {this.renderChart()}
            </View>
        )
    }
}

const mapStateToProps = ({singleCoin}) => {
    return { singleCoin };
}

export default connect(mapStateToProps, { FetchSingleCoinData })(SingleCoinContainer);

My console has no errors and the app just fully crashes with a black screen.

Any ideas?

Most helpful comment

@zivchen react-native-svg 5.5.1 and victory-native 0.15.0 works for me

All 8 comments

Downgraded to expo 22. Still crashes.

Upgraded Xcode to 9.2 and iOS to 11.2 --still crashing.

Downgrading react-native-svg to version 5 solved this.

@wesharehoodies Which version exactly? 5.4.1?

@wesharehoodies @danieldelouya
any leads guys? im stuck and with a production app...
No comibantion of react native svg or victory native works.

@zivchen react-native-svg 5.5.1 and victory-native 0.15.0 works for me

@danieldelouya can you please paste your package.json?
I'm using react-native-svg 5.5.1 and victory-native 0.15.0 but still crash...

Created using react-native init. The release version on a real iPhone crashes when render timeline chart. Well sometimes it works and crashes.

Fyi, I also make sure all datapoints are populated before render it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jzhw0130 picture jzhw0130  路  3Comments

UtkarshPramodGupta picture UtkarshPramodGupta  路  5Comments

xinhash picture xinhash  路  4Comments

ChrisGatzo picture ChrisGatzo  路  3Comments

hwaterke picture hwaterke  路  6Comments