@@ -2,11 +2,9 @@ import _ from 'lodash';
22import PropTypes from 'prop-types' ;
33import React , { Component , PureComponent } from 'react' ;
44import { StyleSheet , Alert , FlatList } from 'react-native' ;
5- import { gestureHandlerRootHOC } from 'react-native-gesture-handler' ;
65import { Colors , ListItem , Text , Avatar , AvatarHelper , Drawer , Button } from 'react-native-ui-lib' ; //eslint-disable-line
76import conversations from '../../data/conversations' ;
87
9-
108const collectionsIcon = require ( '../../assets/icons/collections.png' ) ;
119const starIcon = require ( '../../assets/icons/star.png' ) ;
1210const shareIcon = require ( '../../assets/icons/share.png' ) ;
@@ -47,7 +45,7 @@ class ConversationListScreen extends Component {
4745 icon : collectionsIcon ,
4846 background : Colors . blue30 ,
4947 onPress : ( ) => Alert . alert ( `Archive button pressed for item #${ item . name } ` )
50- } ,
48+ }
5149 ] ;
5250 const leftButton = {
5351 text : 'Read' ,
@@ -94,19 +92,19 @@ class ConversationListScreen extends Component {
9492
9593 addRef = ( ref , index ) => {
9694 this . refArray [ index ] = ref ;
97- }
95+ } ;
9896
9997 onEndReached = ( ) => {
10098 this . getNewItems ( ) ;
101- }
99+ } ;
102100
103101 onSwipeableWillOpen = ( props ) => {
104102 this . closeLast ( props . index ) ;
105- }
103+ } ;
106104
107105 renderItem = ( { item, index} ) => {
108- return < ContactItem item = { item } index = { index } addRef = { this . addRef } onSwipeableWillOpen = { this . onSwipeableWillOpen } />
109- }
106+ return < ContactItem item = { item } index = { index } addRef = { this . addRef } onSwipeableWillOpen = { this . onSwipeableWillOpen } /> ;
107+ } ;
110108
111109 keyExtractor = ( item , index ) => `${ item . name } -${ index } ` ;
112110
@@ -128,7 +126,7 @@ class ContactItem extends PureComponent {
128126 index : PropTypes . number ,
129127 addRef : PropTypes . func ,
130128 onSwipeableWillOpen : PropTypes . func
131- }
129+ } ;
132130
133131 render ( ) {
134132 const { item, index, addRef, onSwipeableWillOpen} = this . props ;
@@ -192,4 +190,4 @@ const styles = StyleSheet.create({
192190 }
193191} ) ;
194192
195- export default gestureHandlerRootHOC ( ConversationListScreen ) ;
193+ export default ConversationListScreen ;
0 commit comments