Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react 18.3 error #646

Open
leineveber opened this issue May 24, 2024 · 1 comment
Open

react 18.3 error #646

leineveber opened this issue May 24, 2024 · 1 comment

Comments

@leineveber
Copy link

Warning: A props object containing a "key" prop is being spread into JSX:
  let props = {key: someKey, data: ..., side: ..., minHeight: ..., sideWidth: ..., labelWidth: ..., isThreeD: ..., isAnimated: ..., animationDuration: ..., animatedHeight: ..., appearingOpacity: ..., roundedTop: ..., roundedBottom: ..., frontColor: ..., sideColor: ..., topColor: ..., cappedBars: ..., capThickness: ..., capColor: ..., capRadius: ..., autoShiftLabels: ..., barMarginBottom: ..., barStyle: ..., item: ..., index: ..., containerHeight: ..., maxValue: ..., spacing: ..., propSpacing: ..., xAxisThickness: ..., barWidth: ..., opacity: ..., disablePress: ..., rotateLabel: ..., showXAxisIndices: ..., xAxisIndicesHeight: ..., xAxisIndicesWidth: ..., xAxisIndicesColor: ..., horizontal: ..., rtl: ..., intactTopLabel: ..., showValuesAsTopLabel: ..., topLabelContainerStyle: ..., topLabelTextStyle: ..., barBorderWidth: ..., barBorderColor: ..., barBorderRadius: ..., barBorderTopLeftRadius: ..., barBorderTopRightRadius: ..., barBorderBottomLeftRadius: ..., barBorderBottomRightRadius: ..., barInnerComponent: ..., color: ..., showGradient: ..., gradientColor: ..., barBackgroundPattern: ..., patternId: ..., onPress: ..., onLongPress: ..., onPressOut: ..., focusBarOnPress: ..., focusedBarConfig: ..., xAxisTextNumberOfLines: ..., xAxisLabelsHeight: ..., xAxisLabelsVerticalShift: ..., renderTooltip: ..., leftShiftForTooltip: ..., initialSpacing: ..., selectedIndex: ..., setSelectedIndex: ..., activeOpacity: ..., noOfSectionsBelowXAxis: ..., leftShiftForLastIndexTooltip: ..., label: ..., labelTextStyle: ..., pointerConfig: ..., yAxisExtraHeightAtTop: ..., yAxisOffset: ...};
  <RenderBars {...props} />
React keys must be passed directly to JSX without using spread:
  let props = {data: ..., side: ..., minHeight: ..., sideWidth: ..., labelWidth: ..., isThreeD: ..., isAnimated: ..., animationDuration: ..., animatedHeight: ..., appearingOpacity: ..., roundedTop: ..., roundedBottom: ..., frontColor: ..., sideColor: ..., topColor: ..., cappedBars: ..., capThickness: ..., capColor: ..., capRadius: ..., autoShiftLabels: ..., barMarginBottom: ..., barStyle: ..., item: ..., index: ..., containerHeight: ..., maxValue: ..., spacing: ..., propSpacing: ..., xAxisThickness: ..., barWidth: ..., opacity: ..., disablePress: ..., rotateLabel: ..., showXAxisIndices: ..., xAxisIndicesHeight: ..., xAxisIndicesWidth: ..., xAxisIndicesColor: ..., horizontal: ..., rtl: ..., intactTopLabel: ..., showValuesAsTopLabel: ..., topLabelContainerStyle: ..., topLabelTextStyle: ..., barBorderWidth: ..., barBorderColor: ..., barBorderRadius: ..., barBorderTopLeftRadius: ..., barBorderTopRightRadius: ..., barBorderBottomLeftRadius: ..., barBorderBottomRightRadius: ..., barInnerComponent: ..., color: ..., showGradient: ..., gradientColor: ..., barBackgroundPattern: ..., patternId: ..., onPress: ..., onLongPress: ..., onPressOut: ..., focusBarOnPress: ..., focusedBarConfig: ..., xAxisTextNumberOfLines: ..., xAxisLabelsHeight: ..., xAxisLabelsVerticalShift: ..., renderTooltip: ..., leftShiftForTooltip: ..., initialSpacing: ..., selectedIndex: ..., setSelectedIndex: ..., activeOpacity: ..., noOfSectionsBelowXAxis: ..., leftShiftForLastIndexTooltip: ..., label: ..., labelTextStyle: ..., pointerConfig: ..., yAxisExtraHeightAtTop: ..., yAxisOffset: ...};
  <RenderBars key={someKey} {...props} />
    in BarAndLineChartsWrapper (created by BarChart)
    in BarChart (created by GroupedBarChart)
    in RCTView (created by View)
    in View
    in View (created by GroupedBarChart)
    in RCTView (created by View)
    in View (created by Pressable)
    in Pressable (created by Pressable)
    in GroupedBarChart (created by BloodAnalysisResults)
    in RCTView (created by View)
    in View

@devevecare
Copy link

+1 I am facing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants