From cfc133a8f1353066106e6f3ec47b4185ec9ff678 Mon Sep 17 00:00:00 2001 From: Saranya Haridas Date: Mon, 27 Apr 2020 16:02:41 +0530 Subject: [PATCH 1/2] webview issue on news --- app/views/News.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/views/News.js b/app/views/News.js index 7a7158f2a7..22b5f121a5 100644 --- a/app/views/News.js +++ b/app/views/News.js @@ -55,7 +55,8 @@ class NewsScreen extends Component { renderItem = item => { return ( - + // + <> {item.item.name} @@ -69,6 +70,7 @@ class NewsScreen extends Component { borderBottomLeftRadius: 12, borderBottomRightRadius: 12, }} + style={{ flex: 1, width: '100%' }} cacheEnabled onLoad={() => this.setState({ @@ -76,7 +78,8 @@ class NewsScreen extends Component { }) } /> - + + // ); }; @@ -168,10 +171,14 @@ const styles = StyleSheet.create({ }, singleNewsHead: { height: 48, + backgroundColor: 'rgba(255,255,255,0.6)', + borderTopLeftRadius: 12, + borderTopRightRadius: 12, alignItems: 'center', justifyContent: 'center', borderBottomWidth: 3, marginBottom: 0, + width: '100%', }, singleNewsHeadText: { fontSize: 16, From 29b97a3ed52d07ff038dc163fe7c1c746a0f828e Mon Sep 17 00:00:00 2001 From: Saranya Haridas Date: Thu, 30 Apr 2020 14:01:11 +0530 Subject: [PATCH 2/2] removing commented code, style updates --- app/views/News.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/views/News.js b/app/views/News.js index 22b5f121a5..4ee9dec35e 100644 --- a/app/views/News.js +++ b/app/views/News.js @@ -55,7 +55,6 @@ class NewsScreen extends Component { renderItem = item => { return ( - // <> @@ -70,7 +69,7 @@ class NewsScreen extends Component { borderBottomLeftRadius: 12, borderBottomRightRadius: 12, }} - style={{ flex: 1, width: '100%' }} + style={!this.state.visible ? { flex: 0, height: 1 } : { flex: 1 }} cacheEnabled onLoad={() => this.setState({ @@ -79,7 +78,6 @@ class NewsScreen extends Component { } /> - // ); };