Today I learned
There is a shortcut in React Natives StyleSheet class to create overlays with position absolute and zero positioning. Replacing the following:
const styles = StyleSheet.create({
overlay: {
position: 'absolute',
top: 0,
right: 0,
bottom: 0,
left: 0,
}…