Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

react-native-brightness-newarch

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-brightness-newarch

Brightness module for new architecture

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

💡 React Native Brightness (New & Old Arch) 🌟

npm version npm downloads Build Status License Bundlephobia Platform Architecture

Easily control the screen brightness in your React Native app — compatible with both New and Old Architecture! ✨

📱 Supported Minimum Versions

  • iOS: 12.0
  • Android: 21 (Lollipop)

Control the screen brightness without writing any native code.

🛠️ Installation

npm install react-native-brightness-newarch

No extra linking needed for modern React Native versions.

🚀 Usage

Brightness values must be between 0 (minimum) and 1 (maximum).

import RNBrightness from "react-native-brightness-newarch";

// Set brightness to 50%
RNBrightness.setBrightnessLevel(0.5);

// Get current brightness
const current = await RNBrightness.getBrightnessLevel();
console.log(`Current brightness is: ${current}`);

⚠️ Out-of-range values are automatically clamped between 0 and 1.

🧱 Architecture

This module automatically detects and supports both:

  • New Architecture (Fabric + TurboModules)
  • Old Architecture (Paper)

No configuration needed — it just works.

🧐 Why Use This?

✅ Supports the New Architecture (TurboModules Ready)
✅ Fully Backward Compatible
No Native Tweaks required (Plug & Play)
✅ Simple, Cross-Platform API
✅ Lightweight and Zero Dependencies

🤝 Contributing

We welcome pull requests, issues, and ideas!
See the contributing guide for details.

📜 License

MIT

Keywords

react-native

FAQs

Package last updated on 08 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts