Description
I'm writing another blog post about the theoretical possibility of applying React Native to the browser, running JS in a worker and using an asm.js-powered renderer on the main thread. (let's just assume that we can do text measurement and ignore a bunch of other big problems). I have an abstract question.
I know React Native handles animations, but I must be missing it in the source. I see InteractionManager
which lets you schedule code to be run after animations are completed. But what is actually applying the animation?
Are we able to animate elements of a flexbox? Say we animated the width of an element from 50 to 100. If we did that, other elements with flex: 1
would need to re-adjust. Since we do the flexbox layout in the JS side (right?) we would need to perform the animation on the JS side. But that's not possible is it? Wouldn't they prone to all sorts of jank, not even from talking over the bridge but even GC stuff?
Of course native animations are supported, but I'm wondering about transitions with the flexbox layout system.