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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access