react-native-animated-charts icon indicating copy to clipboard operation
react-native-animated-charts copied to clipboard

CurrentPositionVerticalLine Throwing Error

Open paranoia5 opened this issue 3 years ago • 3 comments

 <ChartPathProvider data={data}>

          <CurrentPositionVerticalLine />

          <ChartPath
            hapticsEnabled={hapticsEnabled}
            hitSlop={hitSlop}
            smoothingWhileTransitioningEnabled={
              smoothingWhileTransitioningEnabled
            }
            fill="none"
            height={SIZE / 2}
            stroke="red"
            strokeWidth="2"
            width={SIZE}
          />
          <ChartDot
            style={{
              backgroundColor: "red",
              marginTop: 20,
            }} />
          </ChartDot>
        </ChartPathProvider>

when removing CurrentPositionVerticalLine component, everything works well. However, when adding it, it throws error as the following:

Error shot

paranoia5 avatar Dec 01 '21 08:12 paranoia5

Is there any help on this, I am experiencing same issue here.

ajimae avatar Dec 06 '21 19:12 ajimae

It throws the error because there is no such component in the version that you have. Changes are merged to master branch here: #45 , so you see it in readme file, but it is not released yet. Last release was on September, code is added on October so you got it. CurrentPositionVerticalLine and OpeningPositionHorizontalLine won't work with yarn or npm installation. You need to pull the master branch to have those features before they will be released. Hope this helps.

mzohrab avatar Dec 08 '21 23:12 mzohrab

+1 for this issue. When will the new version be released?

goldie-summers avatar Jan 30 '23 20:01 goldie-summers