Skip to content

Commit bb5099f

Browse files
committed
Remove usable of Animatable in Twitter screen and add screen padding
1 parent 788410c commit bb5099f

File tree

1 file changed

+3
-4
lines changed
  • demo/src/screens/realExamples/Twitter

1 file changed

+3
-4
lines changed

demo/src/screens/realExamples/Twitter/index.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, {Component} from 'react';
22
import {FlatList, StyleSheet} from 'react-native';
3-
import {View as AnimatableView} from 'react-native-animatable';
4-
import {View, Text, ListItem, Avatar, AnimatableManager, Card, Colors, Button} from 'react-native-ui-lib';
3+
import {View, Text, ListItem, Avatar, Card, Colors, Button} from 'react-native-ui-lib';
54

65
const posts = [
76
{
@@ -68,7 +67,7 @@ class Twitter extends Component {
6867

6968
renderPost(post: any, id: number) {
7069
return (
71-
<AnimatableView {...AnimatableManager.getEntranceByIndex(id, {})}>
70+
<View padding-page>
7271
<ListItem key={id} height={post.height} containerStyle={styles.post}>
7372
<ListItem.Part left containerStyle={{justifyContent: 'space-between'}}>
7473
<Avatar source={post.avatar ? {uri: post.avatar} : undefined} containerStyle={styles.avatar}/>
@@ -105,7 +104,7 @@ class Twitter extends Component {
105104
</View>
106105
</ListItem.Part>
107106
</ListItem>
108-
</AnimatableView>
107+
</View>
109108
);
110109
}
111110

0 commit comments

Comments
 (0)