react-native-progress
react-native-progress copied to clipboard
Error after updating to RN 0.59.0
This happens after updating to RN 0.59.0.
I'm using the latest version of react-native-progress which is 3.6.0.
Code below is how I use the library:
<ProgressBar progress={barProgress} animated={false} width={null} height={30} borderRadius={4} borderWidth={2} borderColor="rgba(17, 198, 174, 0.3)" color="rgba(17, 198, 174, 1)" style={[ styles.progressBar, { paddingHorizontal: progressBarPadding }, ]} />
same issue with last version of React-Native 0.59.5
Same when using Progress.Bar
, also similar error when using ProgressCircle
After just experiencing a similar issue I would ask that you verify that what you pass into the progress prop is a number between 1 or 0 (otherwise default it to 0 or something).
In addition, the import I've been using has been import ProgressBar from 'react-native-progress/Bar';
@JayLavaX Looking at your example however it would appear that the progressBarPadding
is coming in as NaN in the logs so you may also want to verify that is also coming through properly.