Closed teenageknight closed 2 years ago
import { CountdownCircleTimer } from 'react-native-countdown-circle-timer'
const UrgeWithPleasureComponent = () => (
<CountdownCircleTimer
isPlaying
duration={7}
colors={['#004777', '#F7B801', '#A30000', '#A30000']}
colorsTime={[7, 5, 2, 0]}
>
{({ remainingTime }) => <Text>{remainingTime}</Text>}
</CountdownCircleTimer>
)
This is what i was talking about
Hey @teenageknight, it seems to be working fine, you can check it in this Snack. Can you reproduce your issue in Expo Snack and share a link?
This package, when passing in multiple colors, either takes in one string representing that color or an array of color tuples. If you run the code as-is, you get a null pointer exception, as seen in the picture.