From 1aac3788f2465a49e7ff0a1776c6c3031613a309 Mon Sep 17 00:00:00 2001 From: Amaury Martiny Date: Mon, 25 Mar 2019 15:43:15 +0100 Subject: [PATCH] fix: video black screen (#64) * Remove courier * Add white background color --- App/Screens/ErrorScreen/ErrorScreen.js | 1 - App/Screens/Home/SmokeVideo/SmokeVideo.js | 1 + App/Screens/Screens.js | 4 ---- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/App/Screens/ErrorScreen/ErrorScreen.js b/App/Screens/ErrorScreen/ErrorScreen.js index 8e2a222b..6b80e62c 100644 --- a/App/Screens/ErrorScreen/ErrorScreen.js +++ b/App/Screens/ErrorScreen/ErrorScreen.js @@ -56,7 +56,6 @@ const styles = StyleSheet.create({ }, errorMessage: { ...theme.text, - fontFamily: 'Courier', fontSize: 10, marginTop: theme.spacing.small }, diff --git a/App/Screens/Home/SmokeVideo/SmokeVideo.js b/App/Screens/Home/SmokeVideo/SmokeVideo.js index 9fec5622..2c1c6005 100644 --- a/App/Screens/Home/SmokeVideo/SmokeVideo.js +++ b/App/Screens/Home/SmokeVideo/SmokeVideo.js @@ -37,6 +37,7 @@ export class SmokeVideo extends Component { const styles = StyleSheet.create({ video: { + backgroundColor: 'white', bottom: 0, height: Dimensions.get('screen').height, position: 'absolute', diff --git a/App/Screens/Screens.js b/App/Screens/Screens.js index 02e65d9d..c80e2755 100644 --- a/App/Screens/Screens.js +++ b/App/Screens/Screens.js @@ -68,10 +68,6 @@ const ErrorStack = createAppContainer( @inject('stores') @observer export class Screens extends Component { - state = { - showVideo: true // Showing video or not - }; - componentDidCatch (error) { this.props.stores.setError(error.message); }