react-native-wants-software-dimming

1.0.1 • Public • Published

react-native-wants-software-dimming

Small native module to set UIScreen wantsSoftwareDimming. Only support iOS.

Getting started

$ npm install react-native-wants-software-dimming --save

Mostly automatic installation

$ react-native link react-native-wants-software-dimming

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-wants-software-dimming and add RNWantsSoftwareDimming.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNWantsSoftwareDimming.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Usage

import RNWantsSoftwareDimming from 'react-native-wants-software-dimming';
 
RNWantsSoftwareDimming.enable();

Readme

Keywords

Package Sidebar

Install

npm i react-native-wants-software-dimming

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

11.7 kB

Total Files

14

Last publish

Collaborators

  • bkdev