How to animate a SVG or progress bar?

0
Hi, I am trying to show loaders in my native app. I want it to be a bar or a circle.  I tried to use keyframes to animate my svg (circle), with this code but when i run it my app wont start.  import { Keyframe } from 'react-native-reanimated'; const loader = new Keyframe({ 0: { transform: [{ rotate: '0deg' }], }, 45: { transform: [{ rotate: '45deg' }] }, 100: { transform: [{ rotate: '90deg' }], }, } How can i let my circle rotate so it seems its spinning?
asked
2 answers
0

Did you already have a look at the ProgressBar and ProgressCircle from the NativeMobileResources module? It does what you describe.

answered
0

are you calling the "loader" function?
 

answered