New warnings in latest build #261
Replies: 1 comment
-
Looks like you are using Victory for React (not Victory Native XL). Default props were removed in Victory 36.9.2. We recommend upgrading to the latest version to get the best TS experience and a smaller bundle size. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to build an app using React and Expo Go as my emulator. I have just had to update the Expo SDK to 51 (from 50) and all of the dependencies were updated too. This on-screen error has just been seen and I would like some guidance please in fixing the code to support its recommendation.
"Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead."
import { VictoryBar, VictoryChart, VictoryAxis } from 'victory-native';
Beta Was this translation helpful? Give feedback.
All reactions