Update app.js

This commit is contained in:
Recep Kocur 2023-01-02 01:25:18 +03:00
parent eeeb3d99d6
commit f1f145d42e

View File

@ -4,12 +4,12 @@ import { disallowScreenshot, keepAwake } from 'react-native-screen-capture';
export default class App extends PureComponent {
state = {
keepAwake: true,
disallowScreenshot: true,
keepAwake: true,
};
componentDidMount() {
keepAwake(this.state.keepAwake)
disallowScreenshot(this.state.disallowScreenshot)
keepAwake(this.state.keepAwake)
}
render() {
return (