mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
25 lines
467 B
TypeScript
25 lines
467 B
TypeScript
import * as React from 'react';
|
|
import { View } from 'react-native';
|
|
import KeepAwake from 'react-native-keep-awake';
|
|
|
|
KeepAwake.activate();
|
|
KeepAwake.deactivate();
|
|
|
|
class TestComponent extends React.Component {
|
|
render() {
|
|
return (
|
|
<KeepAwake />
|
|
);
|
|
}
|
|
}
|
|
|
|
class TestChildernComponent extends React.Component {
|
|
render() {
|
|
return (
|
|
<KeepAwake>
|
|
<View />
|
|
</KeepAwake>
|
|
);
|
|
}
|
|
}
|