Victory-native: VictoryTooltip flickering on iOS

Created on 4 May 2018  路  5Comments  路  Source: FormidableLabs/victory-native

Checklist

  • [ / ] This is a victory-native specific issue. (Issues that _also_ appear in victory should be opened here)

  • [ / ] I have read through the FAQ and Guides before asking a question

  • I am using the version 0.17.3 of victory-native

  • [ / ] I have checked to make sure that my versions of react-native and react-native-svg are compatible with this version of victory-native. Read about version requirements

  • [ / ] I've searched open issues to make sure I'm not opening a duplicate issue

The Problem

Hi there,

I'm using VictoryTooltip to show the labels for VictoryBar, but on iOS the label flickers (shows up and disappears after like, half a second) instead of showing up while the bar is being pressed. It totally doesn't show up on Android. Any idea how to fix this?

P.S. I tried using the first example from https://formidable.com/open-source/victory/guides/tooltips/ in my app and the same thing happens.

<VictoryBar
     labelComponent={
          <VictoryTooltip
             cornerRadius={0}
             style={{ fill: Colors.white, fontSize: 11 }}
             flyoutStyle={{ fill: Colors.darkGreyBlue }}
             horizontal={false}
             height={30}
          />
     }
     data={[
     {x: 1, y: 2, label: 'A'},
     {x: 2, y: 4, label: 'B'},
     {x: 3, y: 7, label: 'C'},
     {x: 4, y: 3, label: 'D'},
     {x: 5, y: 5, label: 'E'},
     ]}
/>

victory-native 0.17.3
react-native 0.54.1
react-native-svg 6.3.1

Most helpful comment

+1
We are also having this issue.

All 5 comments

+1
We are also having this issue.

I had the same problem but on Android. I fixed it by changing the version of the victory-native from 0.18.2 to 0.16.2. My working setup is :
"victory-native": "0.16.2",
"react-native": "0.54.0-rc.3",
"react-native-svg": "6.1.4"

Any new insight or progress into this? I'm having this issue with victory-native 31.0.0

Any updates? We're also having this issue

I had an issue with flickering labels until I converted the floats to a string, labels={({ datum }) => datum.temperature.toFixed(1)}

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jlo1 picture jlo1  路  3Comments

jzhw0130 picture jzhw0130  路  3Comments

ararog picture ararog  路  4Comments

WhyX picture WhyX  路  6Comments

ChrisGatzo picture ChrisGatzo  路  3Comments