https://github.com/bkdev98/react-native-wants-software-dimming
[WIP] Small native module to set UIScreen wantsSoftwareDimming. Only support iOS.
https://github.com/bkdev98/react-native-wants-software-dimming
Last synced: 7 months ago
JSON representation
[WIP] Small native module to set UIScreen wantsSoftwareDimming. Only support iOS.
- Host: GitHub
- URL: https://github.com/bkdev98/react-native-wants-software-dimming
- Owner: bkdev98
- Created: 2019-02-26T03:31:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-26T03:31:34.000Z (almost 7 years ago)
- Last Synced: 2025-06-02T13:15:30.368Z (9 months ago)
- Language: Ruby
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-native-wants-software-dimming
Small native module to set [UIScreen wantsSoftwareDimming](https://developer.apple.com/documentation/uikit/uiscreen/1617821-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 `Libraries` ➜ `Add Files to [your project's name]`
2. Go to `node_modules` ➜ `react-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 Phases` ➜ `Link Binary With Libraries`
4. Run your project (`Cmd+R`)<
## Usage
```javascript
import RNWantsSoftwareDimming from 'react-native-wants-software-dimming';
RNWantsSoftwareDimming.enable();
```