@kobe-brants/react-native-keep-awake 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,25 +7,25 @@ exports.default = void 0;
7
7
  var _reactNative = require("react-native");
8
8
  var _react = require("react");
9
9
  const {
10
- MyKeepAwake
10
+ KeepAwake
11
11
  } = _reactNative.NativeModules;
12
12
 
13
13
  // Create a React component for declarative usage
14
14
 
15
- class KeepAwake extends _react.Component {
15
+ class KeepAwakeComponent extends _react.Component {
16
16
  componentDidMount() {
17
- MyKeepAwake.activate();
17
+ KeepAwake.activate();
18
18
  }
19
19
  componentWillUnmount() {
20
- MyKeepAwake.deactivate();
20
+ KeepAwake.deactivate();
21
21
  }
22
22
  render() {
23
23
  return null;
24
24
  }
25
25
  }
26
26
  var _default = exports.default = {
27
- activate: () => MyKeepAwake.activate(),
28
- deactivate: () => MyKeepAwake.deactivate(),
29
- KeepAwake
27
+ activate: () => KeepAwake.activate(),
28
+ deactivate: () => KeepAwake.deactivate(),
29
+ KeepAwake: KeepAwakeComponent
30
30
  };
31
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_react","MyKeepAwake","NativeModules","KeepAwake","Component","componentDidMount","activate","componentWillUnmount","deactivate","render","_default","exports","default"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,MAAA,GAAAD,OAAA;AAHA,MAAM;EAAEE;AAAY,CAAC,GAAGC,0BAAa;;AAErC;;AAGA,MAAMC,SAAS,SAASC,gBAAS,CAAC;EAChCC,iBAAiBA,CAAA,EAAG;IAClBJ,WAAW,CAACK,QAAQ,CAAC,CAAC;EACxB;EAEAC,oBAAoBA,CAAA,EAAG;IACrBN,WAAW,CAACO,UAAU,CAAC,CAAC;EAC1B;EAEAC,MAAMA,CAAA,EAAG;IACP,OAAO,IAAI;EACb;AACF;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEc;EACbN,QAAQ,EAAEA,CAAA,KAAML,WAAW,CAACK,QAAQ,CAAC,CAAC;EACtCE,UAAU,EAAEA,CAAA,KAAMP,WAAW,CAACO,UAAU,CAAC,CAAC;EAC1CL;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_react","KeepAwake","NativeModules","KeepAwakeComponent","Component","componentDidMount","activate","componentWillUnmount","deactivate","render","_default","exports","default"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,MAAA,GAAAD,OAAA;AAHA,MAAM;EAAEE;AAAU,CAAC,GAAGC,0BAAa;;AAEnC;;AAGA,MAAMC,kBAAkB,SAASC,gBAAS,CAAC;EACzCC,iBAAiBA,CAAA,EAAG;IAClBJ,SAAS,CAACK,QAAQ,CAAC,CAAC;EACtB;EAEAC,oBAAoBA,CAAA,EAAG;IACrBN,SAAS,CAACO,UAAU,CAAC,CAAC;EACxB;EAEAC,MAAMA,CAAA,EAAG;IACP,OAAO,IAAI;EACb;AACF;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEc;EACbN,QAAQ,EAAEA,CAAA,KAAML,SAAS,CAACK,QAAQ,CAAC,CAAC;EACpCE,UAAU,EAAEA,CAAA,KAAMP,SAAS,CAACO,UAAU,CAAC,CAAC;EACxCP,SAAS,EAAEE;AACb,CAAC","ignoreList":[]}
@@ -2,25 +2,25 @@
2
2
 
3
3
  import { NativeModules } from 'react-native';
4
4
  const {
5
- MyKeepAwake
5
+ KeepAwake
6
6
  } = NativeModules;
7
7
 
8
8
  // Create a React component for declarative usage
9
9
  import { Component } from 'react';
10
- class KeepAwake extends Component {
10
+ class KeepAwakeComponent extends Component {
11
11
  componentDidMount() {
12
- MyKeepAwake.activate();
12
+ KeepAwake.activate();
13
13
  }
14
14
  componentWillUnmount() {
15
- MyKeepAwake.deactivate();
15
+ KeepAwake.deactivate();
16
16
  }
17
17
  render() {
18
18
  return null;
19
19
  }
20
20
  }
21
21
  export default {
22
- activate: () => MyKeepAwake.activate(),
23
- deactivate: () => MyKeepAwake.deactivate(),
24
- KeepAwake
22
+ activate: () => KeepAwake.activate(),
23
+ deactivate: () => KeepAwake.deactivate(),
24
+ KeepAwake: KeepAwakeComponent
25
25
  };
26
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["NativeModules","MyKeepAwake","Component","KeepAwake","componentDidMount","activate","componentWillUnmount","deactivate","render"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,cAAc;AAE5C,MAAM;EAAEC;AAAY,CAAC,GAAGD,aAAa;;AAErC;AACA,SAASE,SAAS,QAAQ,OAAO;AAEjC,MAAMC,SAAS,SAASD,SAAS,CAAC;EAChCE,iBAAiBA,CAAA,EAAG;IAClBH,WAAW,CAACI,QAAQ,CAAC,CAAC;EACxB;EAEAC,oBAAoBA,CAAA,EAAG;IACrBL,WAAW,CAACM,UAAU,CAAC,CAAC;EAC1B;EAEAC,MAAMA,CAAA,EAAG;IACP,OAAO,IAAI;EACb;AACF;AAEA,eAAe;EACbH,QAAQ,EAAEA,CAAA,KAAMJ,WAAW,CAACI,QAAQ,CAAC,CAAC;EACtCE,UAAU,EAAEA,CAAA,KAAMN,WAAW,CAACM,UAAU,CAAC,CAAC;EAC1CJ;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["NativeModules","KeepAwake","Component","KeepAwakeComponent","componentDidMount","activate","componentWillUnmount","deactivate","render"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,cAAc;AAE5C,MAAM;EAAEC;AAAU,CAAC,GAAGD,aAAa;;AAEnC;AACA,SAASE,SAAS,QAAQ,OAAO;AAEjC,MAAMC,kBAAkB,SAASD,SAAS,CAAC;EACzCE,iBAAiBA,CAAA,EAAG;IAClBH,SAAS,CAACI,QAAQ,CAAC,CAAC;EACtB;EAEAC,oBAAoBA,CAAA,EAAG;IACrBL,SAAS,CAACM,UAAU,CAAC,CAAC;EACxB;EAEAC,MAAMA,CAAA,EAAG;IACP,OAAO,IAAI;EACb;AACF;AAEA,eAAe;EACbH,QAAQ,EAAEA,CAAA,KAAMJ,SAAS,CAACI,QAAQ,CAAC,CAAC;EACpCE,UAAU,EAAEA,CAAA,KAAMN,SAAS,CAACM,UAAU,CAAC,CAAC;EACxCN,SAAS,EAAEE;AACb,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'react';
2
- declare class KeepAwake extends Component {
2
+ declare class KeepAwakeComponent extends Component {
3
3
  componentDidMount(): void;
4
4
  componentWillUnmount(): void;
5
5
  render(): null;
@@ -7,7 +7,7 @@ declare class KeepAwake extends Component {
7
7
  declare const _default: {
8
8
  activate: () => any;
9
9
  deactivate: () => any;
10
- KeepAwake: typeof KeepAwake;
10
+ KeepAwake: typeof KeepAwakeComponent;
11
11
  };
12
12
  export default _default;
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,cAAM,SAAU,SAAQ,SAAS;IAC/B,iBAAiB;IAIjB,oBAAoB;IAIpB,MAAM;CAGP;;;;;;AAED,wBAIE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,cAAM,kBAAmB,SAAQ,SAAS;IACxC,iBAAiB;IAIjB,oBAAoB;IAIpB,MAAM;CAGP;;;;;;AAED,wBAIE"}
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'react';
2
- declare class KeepAwake extends Component {
2
+ declare class KeepAwakeComponent extends Component {
3
3
  componentDidMount(): void;
4
4
  componentWillUnmount(): void;
5
5
  render(): null;
@@ -7,7 +7,7 @@ declare class KeepAwake extends Component {
7
7
  declare const _default: {
8
8
  activate: () => any;
9
9
  deactivate: () => any;
10
- KeepAwake: typeof KeepAwake;
10
+ KeepAwake: typeof KeepAwakeComponent;
11
11
  };
12
12
  export default _default;
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,cAAM,SAAU,SAAQ,SAAS;IAC/B,iBAAiB;IAIjB,oBAAoB;IAIpB,MAAM;CAGP;;;;;;AAED,wBAIE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,cAAM,kBAAmB,SAAQ,SAAS;IACxC,iBAAiB;IAIjB,oBAAoB;IAIpB,MAAM;CAGP;;;;;;AAED,wBAIE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kobe-brants/react-native-keep-awake",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Keep device screen awake for React Native",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
package/src/index.tsx CHANGED
@@ -1,17 +1,17 @@
1
1
  import { NativeModules } from 'react-native';
2
2
 
3
- const { MyKeepAwake } = NativeModules;
3
+ const { KeepAwake } = NativeModules;
4
4
 
5
5
  // Create a React component for declarative usage
6
6
  import { Component } from 'react';
7
7
 
8
- class KeepAwake extends Component {
8
+ class KeepAwakeComponent extends Component {
9
9
  componentDidMount() {
10
- MyKeepAwake.activate();
10
+ KeepAwake.activate();
11
11
  }
12
12
 
13
13
  componentWillUnmount() {
14
- MyKeepAwake.deactivate();
14
+ KeepAwake.deactivate();
15
15
  }
16
16
 
17
17
  render() {
@@ -20,7 +20,7 @@ class KeepAwake extends Component {
20
20
  }
21
21
 
22
22
  export default {
23
- activate: () => MyKeepAwake.activate(),
24
- deactivate: () => MyKeepAwake.deactivate(),
25
- KeepAwake,
23
+ activate: () => KeepAwake.activate(),
24
+ deactivate: () => KeepAwake.deactivate(),
25
+ KeepAwake: KeepAwakeComponent,
26
26
  };