How to Control Screen Brightness in Your Expo App

DavidDavid November 6, 2026 6 min read

How to control screen brightness in your Expo app, in short

Install expo-brightness, import it, and call Brightness.setBrightnessAsync(1) when the screen that needs full brightness opens. The value is a number from 0 to 1, where 1 is as bright as the screen goes. When the user leaves that screen, put the brightness back to what it was. That is the whole feature for most apps.

The classic use is any screen that gets scanned: a ticket, a boarding pass, a loyalty card, a payment QR code. Scanners at gates and counters struggle with a dim phone, and the user standing in line should not have to dig into Control Center while people wait behind them. Doing it for them is a small detail that makes an app feel finished.

expo-brightness at a glance

QuestionAnswer
Installnpx expo install expo-brightness
Works in Expo Go?Yes
PlatformsAndroid and iOS
Set brightness for your appsetBrightnessAsync(value), value from 0 to 1
Read the current levelgetBrightnessAsync()
Permission needed?Not on iOS. On Android only for the system functions, via WRITE_SETTINGS

Step 1: Install expo-brightness

Run npx expo install expo-brightness. Using expo install picks the version that matches your SDK, which on SDK 58 is the 58.0.x line. The module ships in Expo Go, so you can try it on a real phone right away without a new [development build](/blog/expo-go-vs-development-build).

Test on a physical device. Brightness is about the real screen in your hand, and a simulator will not tell you whether a QR code is readable in a dim room.

Step 2: Know how iOS and Android differ

The same call behaves differently on each platform, and this is the part most AI-written code skips. On iOS, setBrightnessAsync changes the screen brightness until the device is locked, then it goes back to the user's own setting. It does not snap back when the user leaves your screen or switches apps. If you do not restore it yourself, the phone stays at full brightness after your ticket screen is long gone.

On Android, setBrightnessAsync only applies to your app's current activity. It overrides the system brightness while your app is in the foreground and does not touch the user's global setting. Android also has a separate system-wide brightness that apps can change, which iOS does not allow at all.

What setBrightnessAsync actually does

iOSAndroid
ScopeThe screen itselfYour app's current activity only
How long it lastsUntil the device is lockedWhile your app is in the foreground
Reverts when the user leaves your screen?No, you must restore itNot by itself, restore it to be safe
Can change the system brightness?NoYes, with the system functions and WRITE_SETTINGS

Step 3: Brighten one screen and put it back

The pattern that works on both platforms: when the screen gains focus, read the current level with getBrightnessAsync and keep it. Then call setBrightnessAsync(1). When the screen loses focus, call setBrightnessAsync with the saved value. On Android you can call restoreSystemBrightnessAsync instead, which tells your activity to go back to using the system value.

  • Tie it to focus, not just mount. In an Expo Router app, useFocusEffect runs when the screen comes into view and its cleanup runs when the user navigates away, even if the screen stays mounted in a stack.
  • Restore in the cleanup, every time. A ticket screen that leaves the phone blazing after the user goes back to the home tab is the bug users notice.
  • Check isAvailableAsync first if your app also runs on the web. It resolves true on iOS and Android only.
  • Keep the value between 0 and 1. Anything outside that range is not a valid brightness.

Step 4: Skip the system brightness functions

expo-brightness also has getSystemBrightnessAsync, setSystemBrightnessAsync, getSystemBrightnessModeAsync and setSystemBrightnessModeAsync. All of them are Android only, and setSystemBrightnessAsync is marked experimental. It also switches the brightness mode to manual, which turns off the user's auto-brightness until they turn it back on.

Using them means adding WRITE_SETTINGS to expo.android.permissions in app.json and calling requestPermissionsAsync or the usePermissions hook. Without the grant, the call fails with ERR_BRIGHTNESS_PERMISSIONS_DENIED. Our general approach to [permission prompts](/blog/how-to-request-permissions-in-your-expo-app) applies here: only ask for what the feature truly needs.

Our take: almost no app needs them. If your feature is "make this screen bright", setBrightnessAsync does it on both platforms with no permission at all. Reach for the system functions only if you are building something like a brightness or display utility, and even then expect it to work on Android only.

Step 5: Pair it with keep awake

A ticket screen that is bright but goes dark while the user is still standing in line has only solved half the problem. Combine this with [keeping the screen awake](/blog/how-to-keep-the-screen-awake-in-your-expo-app): call useKeepAwake on the same screen, and both the lock and the brightness are released when the user leaves.

If you want to react when the brightness changes, addBrightnessListener fires on iOS only and never fires on Android or the web. Do not build a feature that depends on it for both platforms.

Have Claude Code build it for you

Open your project in the Claude Code desktop app and name the exact screen. Left alone, AI-written code tends to reach for setSystemBrightnessAsync, add a permission you do not need, or forget to restore the brightness on iOS. A prompt that avoids all three:

Then add a line to your [CLAUDE.md](/blog/claude-md-for-expo-apps) such as "Brightness: setBrightnessAsync on scan screens only, always restore on blur, never the system functions" so a later session does not undo it.

The short version

To control screen brightness in your Expo app: install expo-brightness, save the current level, call setBrightnessAsync(1) on the screen that gets scanned, and restore the saved level when the user leaves. Remember that iOS keeps your change until the phone is locked, that Android only applies it to your app, and that the system functions are Android only and rarely worth the permission.

If you are building your first iOS app with Claude Code and Expo and want feedback on it before App Review, bring it to App Store Launch Club. Members share their builds and help each other get unstuck, and the [curriculum](/curriculum) covers the full path from first build to first users. If you are adding more native polish, our guides to [haptic feedback](/blog/how-to-add-haptic-feedback-to-your-expo-app) and [locking screen orientation](/blog/how-to-lock-screen-orientation-in-your-expo-app) follow the same pattern. Join at applaunchclub.co for $9 a month.

Free app-building tips, straight to your inbox

Short, practical drops on app ideas, validating fast, store listings, and passing app review. No spam, unsubscribe anytime.

Frequently asked questions

How do I make the screen brighter in an Expo app?

Install expo-brightness with npx expo install expo-brightness and call Brightness.setBrightnessAsync(1) on the screen that needs it. The value runs from 0 to 1. Save the level from getBrightnessAsync first so you can set it back when the user leaves.

Does expo-brightness work in Expo Go?

Yes. expo-brightness is included in Expo Go and supports Android and iOS, so you can test it on a real phone without a development build.

Why does my iPhone stay bright after leaving the screen?

On iOS, setBrightnessAsync lasts until the device is locked, not until the user leaves your screen. Restore the saved brightness yourself in the screen's blur or cleanup handler.

Do I need a permission to change brightness in Expo?

Not for setBrightnessAsync. iOS needs no permission, and on Android that call only affects your app. The WRITE_SETTINGS permission is only for the Android system brightness functions.

Can an Expo app change the system brightness on iPhone?

No. iOS does not allow apps to change the system brightness setting. The system brightness functions in expo-brightness work on Android only.

What does restoreSystemBrightnessAsync do?

On Android, it makes your app's current activity go back to using the system-wide brightness instead of the value you set. It is Android only, so on iOS set the saved value back with setBrightnessAsync.

Last reviewed by David on November 6, 2026

David

Written by

David

Founder and app builder

Keep reading

ExpoClaude Code

How to Add Notification Actions to Your Expo App

To add notification actions to an Expo app, register a category with Notifications.setNotificationCategoryAsync, give it action buttons (and optionally a text reply), set categoryIdentifier on the notification, then read response.actionIdentifier in a response listener. Here is every action option, how to handle taps when the app was closed, the Android and iOS differences, and a Claude Code prompt that wires it all up.

David 8 min
Read article
ExpoClaude Code

How to Schedule Local Notifications in Your Expo App

To schedule local notifications in an Expo app, install expo-notifications, set a notification handler, ask for permission, create an Android channel, then call scheduleNotificationAsync with your content and a trigger like DAILY, WEEKLY or DATE. Here is every trigger type, how to cancel and list what is scheduled, why Android reminders arrive late, and a Claude Code prompt that builds the whole reminder flow.

David 8 min
Read article

Ready to build it yourself?

Join App Store Launch Club, the #1 community for building and launching apps, for $9/month.

← Back to the blog