I am making an attempt to make use of a pie chart from react-native-gifted-charts
. I would like to indicate a picture associated to the chosen pie chart worth. After I deploy a code like under, it really works discover to toggle the picture but focusOnPress
does not work anymore however blinks as if I clicked the chart twice. Nevertheless, after I change the onPress
perform with one thing easy as console.log(merchandise)
, focusOnPress
works completely superb as anticipated. Did anybody encounter an analogous problem?
<PieChart
radius={100}
focusOnPress
information={pieChartData}
extraRadiusForFocused={5}
onPress={(merchandise) => setIsPieChartSelected(!isPieChartSelected)}
/>
{isPieChartSelected && <MyImage />}