
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
react-native-override-color-scheme
Advanced tools
React Native package to let users override the app's color scheme/theme
react-native-override-color-scheme
React Native package to let users override the app's color scheme/theme
npm install react-native-override-color-scheme
or
yarn add react-native-override-color-scheme
If you are using RN >= 0.60, only run npx pod-install
. Then rebuild your project.
:warning: We use method swizzling to enable support for alerts on iOS. Method swizzling is used by Firebase iOS SDK as well, but it can be problematic in some cases, especially when another library is also swizzling the same method. That’s why we have made this step optional.
To enable support for alerts on iOS, please follow the steps below:
/ios/{projectName}/AppDelegate.m
file#import <OverrideColorScheme.h>
didFinishLaunchingWithOptions
method, add [OverrideColorScheme enableAlertSupport];
to the top of the method (see below).
#import <OverrideColorScheme.h> // <--- import
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[OverrideColorScheme enableAlertSupport]; // <--- and add this line
//...
}
No additional step is required.
import overrideColorScheme from 'react-native-override-color-scheme';
// ...
overrideColorScheme.setScheme('dark'); // or `light` or `undefined` for system default
See the example for advanced use cases.
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
FAQs
React Native package to let users override the app's color scheme/theme
The npm package react-native-override-color-scheme receives a total of 108 weekly downloads. As such, react-native-override-color-scheme popularity was classified as not popular.
We found that react-native-override-color-scheme demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.