V
V
Valery Lyubimov2019-09-21 20:02:13
Canvas
Valery Lyubimov, 2019-09-21 20:02:13

How do I increase the performance of a Canvas inside a WebView inside React Native?

I really need your advice!
The case of my application is as follows: we have a WebView with a canvas inside, we build the canvas through the Konva.js framework, we draw the canvas itself with vectors that come to us from bold json with a description of the commands on how to draw our curves and vectors.
The app actively communicates between React Native and WebView. There are both commands sent inside the WebView to redraw the canvas, and commands coming from the WebView to receive various events such as taps on the canvas.
I'd love to hear any advice on how I can increase the productivity of this whole thing?
So far, the main idea in my head is to get away from the vector, generate a regular png image and output them.
If suddenly someone has thoughts about this or maybe someone did something similar, I would be glad to hear)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimka Reactive, 2019-09-22
@raoffonom

Relinquish web view

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question