There's more...

In this recipe, we had a look at the app.json file that exists as part of every Expo project. There are many useful settings that can be adjusted in this file that affect the build process of the project. You can use this file to adjust orientation lock, define an app icon, and set a splash screen, among many other settings. You can review all of the settings supported by app.json in the Expo configuration documentation, hosted at https://docs.expo.io/versions/latest/guides/configuration.html.

Expo also provides the ScreenOrientation utility, which can be used instead to declare the allowed orientations for your app. Using the utility's main method ScreenOrientation.allow(orientation), will overwrite the corresponding setting in app.json. The utility also provides more granular options than the setting in app.json, such as ALL_BUT_UPSIDE_DOWN and LANDSCAPE_RIGHT. For more on this utility, you can read the documentation at https://docs.expo.io/versions/latest/sdk/screen-orientation.html.