react-native-draw
react-native-draw copied to clipboard
Slow performance when holding stroke for a long time
On what kind of device are you using this library?
- [X] Android
- [ ] iOS
- [ ] Web
Environment
- OS: archlinux 5.17.4
- react-native: 0.64.3
- expo: 44.0.0
- @benjeau/react-native-draw: 0.8.1
- react-native-gesture-handler: 2.1.0
- react-native-svg: 12.1.1
Current Behavior
When holding more than 2 seconds a stroke, it's drawing with delay and slow performance

Expected Behavior
No delay when holding for a longtime a stroke
Steps To Reproduce
Problem appear with the minimal example:
return (
<View style={{flex: 1, height: "100%", width: "100%"}}>
<Canvas style={{backgroundColor: "green"}}/>
</View>
)
Anything else?
No response
Can repo on both Android & iOS
Unfortunately this is a limitation using SVG. I'm working on a re-write of the library to work using Skia, which would be extremely more performant.
any news??