Expo version: 23.0.0
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?
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.
Most helpful comment
@zivchen react-native-svg 5.5.1 and victory-native 0.15.0 works for me