3 ms·
The GUI layer in a static sense. You can't have native realtime interactions with the GUI, for instance dragging and interactive animations. You can choose one
by baxuz 6y ago
The GUI layer in a static sense. You can't have native realtime interactions with the GUI, for instance dragging and interactive animations.
You can choose one of two things:
1) Run a single precomputed action or animation in native-land when receiving an event from JS. No interaction is possible.
2) Run a requestAnimationFrame loop in JS which is passing the bridge (6 API calls on Android - 3 layers per direction) 60-120 times per second in async mode. Enjoy the jank.