Safe Areas & Env Variables
In order to use safe areas, you will need to install the react-native-safe-area-context package by following the instructions. They also rely on wrapping your application in Skyle's Provider.
#
Usage#
StyleSheet VariablesOne way to access safe areas is by using the insets
StyleSheet variable.
Learn more
#
Env VariablesSafe areas can be accessed via the env()
functional notation. You can also set custom env variables like so:
info
You can also pass functions to these variables.
#
ConfigureTo set custom safe areas, override these env variables: