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.
Downloads
4
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-dimming
and addRNWantsSoftwareDimming.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNWantsSoftwareDimming.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Usage
import RNWantsSoftwareDimming from 'react-native-wants-software-dimming';
RNWantsSoftwareDimming.enable();