Skip to content

Commit

Permalink
final push for android no scroll bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tunaSalad2406 committed Apr 19, 2018
1 parent cb5ed4b commit 8c897b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
20 changes: 6 additions & 14 deletions src/container/FriendProfileScreen/Details/Wall.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,9 @@ import Intro from "./Intro";
import Friends from "./Friends";

class Wall extends Component {
end() {
}

_renderItem = ({ item }) => <FeedCard {...item} />
_disableScroll() {
this._list.getScrollResponder().setNativeProps({
scrollEnabled: false
});
}

renderHeader = () => {
const info = this.props.info;
return (
Expand All @@ -33,9 +28,9 @@ class Wall extends Component {
<Text style={{ textAlign: "center", fontSize: 25 }}>{this.props.info.username}</Text>

<View style={{flexDirection: "row", marginTop: 20}}>
<Button info bordered style={{width:Dimensions.get("window").width / 3,margin:5}}><Text style={{textAlign: "center"}}> Kết bạn</Text></Button>
<Button danger bordered style={{width:Dimensions.get("window").width / 3,margin:5}}><Text> Theo dõi</Text></Button>
<Button success bordered style={{width:Dimensions.get("window").width / 3,margin:5}}><Text> Nhắn tin</Text></Button>
<Button info style={{width:Dimensions.get("window").width / 3.5,margin:5}}><Text style={{textAlign: "center"}}> Kết bạn</Text></Button>
<Button danger style={{width:Dimensions.get("window").width / 3.5,margin:5}}><Text> Theo dõi</Text></Button>
<Button success style={{width:Dimensions.get("window").width / 3.5,margin:5}}><Text> Nhắn tin</Text></Button>
</View>
<Tabs style={{paddingTop:5}}>
<Tab
Expand All @@ -61,7 +56,7 @@ class Wall extends Component {
<Tab
heading={
<TabHeading>
<Icon name="ios-people-outline" />
<Icon name="ios-code-working" />
<Text style={{fontWeight:"bold"}}>Khác</Text>
</TabHeading>
}
Expand All @@ -77,7 +72,6 @@ class Wall extends Component {
<FlatList
keyExtractor={index => index._id}
contentContainerStyle={{ alignSelf: "stretch" }}
onEndReached={this.end.bind(this)}
onEndReachedThreshold={0.1}
data={this.props.info.posts}
renderItem={this._renderItem.bind(this)}
Expand All @@ -86,9 +80,7 @@ class Wall extends Component {
);

return (
<Layout>
<View>{content}</View>
</Layout>
);
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/container/FriendProfileScreen/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ class FriendProfile extends Component {
</Button>
</Right>
</Header>
<Content padder style={{ backgroundColor: "#fff" }}>
<Wall info={info} />
</Content>
</Container>
</Layout>
);
Expand Down

0 comments on commit 8c897b3

Please sign in to comment.