DefinitelyTyped/types/react-native-keep-awake/react-native-keep-awake-tests.tsx
2017-08-17 14:53:41 -07:00

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