---
title: "Discussion on \"How to disable dark-mode in React Native\" | Hashnode"
description: "Discussion on \"How to disable dark-mode in React Native\". Android\nTo disable dark mode on Android, go to styles.xml. This is the path android/app/src/main/res/values/styles.xml then add this piece of code\n<item name=\"android:forceDarkAllowed\">false</item>\n\nYour styles.xml should now look somewhat like this\n..."
url: "https://hashnode.com/posts/how-to-disable-dark-mode-in-react-native/6433385c7a192b49e6ac7d73"
---

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

Discussion

# [How to disable dark-mode in React Native](https://dera.hashnode.dev/how-to-disable-dark-mode-in-react-native?utm_source=hashnode&utm_medium=feed)

Android To disable dark mode on Android, go to styles.xml. This is the path android/app/src/main/res/values/styles.xml then add this piece of code <item name="android:forceDarkAllowed">false</item> Your styles.xml should now look somewhat like this ...

Apr 9, 2023 · 1 min read · dera.hashnode.dev  
Read the article

-   [#react-native](https://hashnode.com/tag/react-native)
-   [#dark-mode](https://hashnode.com/tag/dark-mode)
-   [#android-app-development](https://hashnode.com/tag/android-app-development)
-   [#ios-app-development](https://hashnode.com/tag/ios-app-development)
-   [#bugs-and-errors](https://hashnode.com/tag/bugs-and-errors)

## Written by

[Chidera Paul Ugwuanyi](https://hashnode.com/@chidera)

@chidera · Aba, Abia State, Nigeria

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

React Native Developer

React native Developer, Life long learner, Jesus Christ lover.

## Responses 1

Markdown supported · ⌘↵ to post

[Arun Rohila](https://hashnode.com/@ArunRohila)

[Oct 23, 2024](https://hashnode.com/posts/how-to-disable-dark-mode-in-react-native/6433385c7a192b49e6ac7d73/comment/6718e9c20c43d01626fc482e)

Thats working!!

Like you suggested for Android and IOS platform, similarly could you please share the disable dark mode thing for "Windows Desktop" application as well.
