From e322c6993cfbdd1641350331605feb5fb1d7eb50 Mon Sep 17 00:00:00 2001 From: Richard-Cao <403164405@qq.com> Date: Sat, 8 Oct 2016 12:15:06 +0800 Subject: [PATCH] style trim --- app/pages/Category.js | 4 ++-- app/pages/WebViewPage.js | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/pages/Category.js b/app/pages/Category.js index 81ad372..dc36d59 100644 --- a/app/pages/Category.js +++ b/app/pages/Category.js @@ -205,7 +205,7 @@ class Category extends React.Component { return ( - + 初次见面,请选择您感兴趣的1-5个类别 @@ -267,7 +267,7 @@ const styles = StyleSheet.create({ margin: 10, padding: 10, borderRadius: 10, - backgroundColor: 'green' + backgroundColor: '#3e9ce9' }, btnText: { fontSize: 16, diff --git a/app/pages/WebViewPage.js b/app/pages/WebViewPage.js index afdd1a9..0c83df9 100644 --- a/app/pages/WebViewPage.js +++ b/app/pages/WebViewPage.js @@ -45,14 +45,6 @@ const toolbarActions = [ let canGoBack = false; class WebViewPage extends React.Component { - static onNavigationStateChange(navState) { - canGoBack = navState.canGoBack; - } - - static renderLoading() { - return ; - } - constructor(props) { super(props); this.state = { @@ -76,6 +68,10 @@ class WebViewPage extends React.Component { }); } + onNavigationStateChange(navState) { + canGoBack = navState.canGoBack; + } + goBack() { if (this.state.isShareModal) { this.setState({ @@ -89,6 +85,10 @@ class WebViewPage extends React.Component { return naviGoBack(this.props.navigator); } + renderLoading() { + return ; + } + renderSpinner() { const { route } = this.props; return (