---
title: "Discussion on \"Build a Dark Mode Switch in React Native 🚀\" | Hashnode"
description: "Discussion on \"Build a Dark Mode Switch in React Native 🚀\". Have you seen apps with a dark mode? It makes the screen darker, which is great for your eyes at night. This code creates a simple app where you can switch between light mode (white background) and dark mode (black background).\nimport React, {useStat..."
url: "https://hashnode.com/posts/build-a-dark-mode-switch-in-react-native/676a8160cbff4a3e813ad5c2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Build a Dark Mode Switch in React Native 🚀](https://hasanraza.hashnode.dev/build-a-dark-mode-switch-in-react-native?utm_source=hashnode&utm_medium=feed)

Have you seen apps with a dark mode? It makes the screen darker, which is great for your eyes at night. This code creates a simple app where you can switch between light mode (white background) and dark mode (black background). import React, {useStat...

Dec 24, 2024 · 1 min read · hasanraza.hashnode.dev  
Read the article

-   [#react-native](https://hashnode.com/tag/react-native)
-   [#dark-mode](https://hashnode.com/tag/dark-mode)
-   [#lightmode](https://hashnode.com/tag/lightmode)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#css](https://hashnode.com/tag/css)

## Written by

[Khan Hasan Raza](https://hashnode.com/@hasanraza)

@hasanraza

  
[View profile](https://hashnode.com/@hasanraza)

Learning never ends

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
