26
loading...
This website collects cookies to deliver better user experience
display: flex
and flexDirection: column
as default, so forget grids and blocks and brush up on your flexbox skills. You will often be tempted to use flex: 1
to make your container fill the whole screen or all available space, which is perfectly fine—but remember that these don't have to play nicely if your component has any animation elements and the device has to recalculate the space. Similarly, another default is position: relative
, meaning your absolute elements are positioned relative to their parent.useNativeDriver: true
prop. However, you get the best performance with the React-Native-Reanimated library, which is currently being upgraded to version 2 and expectations are high! Note that this only works with Hermes enabled (see the next section). More sophisticated animations used to, for example, wow users with an eye-catching splash screen, are commonly achieved with Lottie.Originally published at aronberezkin.com and strv.com on February 18, 2021.