1.0.1 • Published 5 years ago

react-native-wants-software-dimming v1.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

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();