Skip to content

Commit 0598697

Browse files
author
soliury
committed
some ligitle change to make the animate quicker
1 parent 0825915 commit 0598697

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

src/components/MessageList.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class MessageList extends Component {
4141

4242

4343
componentWillReceiveProps(nextProps) {
44-
if (nextProps.data != this.props.data) {
44+
if (nextProps.didFocus && nextProps.data != this.props.data) {
4545
this.setState({
4646
ds: this.ds.cloneWithRows(nextProps.data)
4747
})
@@ -147,7 +147,6 @@ class MessageList extends Component {
147147
if (this.props.didFocus) {
148148
return (
149149
<ListView
150-
style={{backgroundColor:'rgba(255,255,255,1)'}}
151150
showsVerticalScrollIndicator={true}
152151
initialListSize={10}
153152
pagingEnabled={false}

src/components/UserOverlay.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class UserOverlay extends Component {
6868
const styles = StyleSheet.create({
6969
userImg: {
7070
borderWidth: 2,
71-
borderColor: '#2C3E50',
71+
borderColor: 'rgba(241,196,15,0.9)',
7272
width: 45,
7373
height: 45,
7474
borderRadius: 45 / 2

src/layouts/User.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import React,{
1212
import moment from 'moment';
1313
import ScrollableTabView from 'react-native-scrollable-tab-view';
1414
import Icon from 'react-native-vector-icons/Ionicons';
15-
import UserTopicPage from '../components/UserTopicList';
15+
import UserTopicList from '../components/UserTopicList';
1616
import TabBar from '../components/TabBar';
1717
import Spinner from '../components/base/Spinner';
1818
import Return from '../components/base/Return';
@@ -102,12 +102,12 @@ class User extends Component {
102102
<ScrollableTabView
103103
edgeHitWidth={(width/3) * 2}
104104
renderTabBar={() => <TabBar/> }>
105-
<UserTopicPage
105+
<UserTopicList
106106
router={this.props.router}
107107
style={styles.userTopicPage}
108108
data={userInfo.recent_replies}
109109
tabLabel="最近回复"/>
110-
<UserTopicPage
110+
<UserTopicList
111111
router={this.props.router}
112112
style={styles.userTopicPage}
113113
data={userInfo.recent_topics}
@@ -190,7 +190,6 @@ class User extends Component {
190190
}
191191

192192
const bgWallHeight = 160;
193-
const authorWrapperHeight = 100;
194193
const authorImgSize = 60;
195194
const fontColor = 'rgba(255,255,255,0.7)';
196195

0 commit comments

Comments
 (0)