0.1.7 • Published 2 years ago

react-native-mo-screen v0.1.7

Weekly downloads
7
License
MIT
Repository
github
Last release
2 years ago

react-native-mo-screen

Provides screen-on, proximity and brightness support

Installation

Install just like your ordinary react-native module.

Usage

Please check the example/ code.

import { Screen, ProximityScreenOffLock, ScreenOnLock } from 'react-native-mo-screen';

const lock = Screen.pushScreenOn();
// do something
lock.release();

const lock = Screen.pushProximityScreenOff();
// do something
lock.release();

Screen.setScreenBrightness(0.5);

return (
  <View>
    <ScreenOnLock />
    <ProximityScreenOffLock />
  </View>
)

TODO

  • keep screen on only while in foreground?
0.1.7

2 years ago

0.1.6

4 years ago

0.1.5

5 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago