Skip to content

Commit

Permalink
style trim
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard-Cao committed Oct 8, 2016
1 parent c9e777c commit e322c69
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions app/pages/Category.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class Category extends React.Component {
return (
<View style={styles.container}>
<View style={styles.header}>
<Text style={[styles.btnText, { color: 'black' }]}>
<Text style={[styles.btnText, { color: 'black', padding: 5, fontSize: 18 }]}>
初次见面,请选择您感兴趣的1-5个类别
</Text>
</View>
Expand Down Expand Up @@ -267,7 +267,7 @@ const styles = StyleSheet.create({
margin: 10,
padding: 10,
borderRadius: 10,
backgroundColor: 'green'
backgroundColor: '#3e9ce9'
},
btnText: {
fontSize: 16,
Expand Down
16 changes: 8 additions & 8 deletions app/pages/WebViewPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,6 @@ const toolbarActions = [
let canGoBack = false;

class WebViewPage extends React.Component {
static onNavigationStateChange(navState) {
canGoBack = navState.canGoBack;
}

static renderLoading() {
return <LoadingView />;
}

constructor(props) {
super(props);
this.state = {
Expand All @@ -76,6 +68,10 @@ class WebViewPage extends React.Component {
});
}

onNavigationStateChange(navState) {
canGoBack = navState.canGoBack;
}

goBack() {
if (this.state.isShareModal) {
this.setState({
Expand All @@ -89,6 +85,10 @@ class WebViewPage extends React.Component {
return naviGoBack(this.props.navigator);
}

renderLoading() {
return <LoadingView />;
}

renderSpinner() {
const { route } = this.props;
return (
Expand Down

0 comments on commit e322c69

Please sign in to comment.