react-native-wants-software-dimming
v1.0.1
Published
Small native module to set [UIScreen wantsSoftwareDimming](https://developer.apple.com/documentation/uikit/uiscreen/1617821-wantssoftwaredimming). Only support iOS.
Readme
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
- In XCode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜react-native-wants-software-dimmingand addRNWantsSoftwareDimming.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNWantsSoftwareDimming.ato your project'sBuild Phases➜Link Binary With Libraries - Run your project (
Cmd+R)<
Usage
import RNWantsSoftwareDimming from 'react-native-wants-software-dimming';
RNWantsSoftwareDimming.enable();