@@ -69,9 +69,6 @@ const HomeScreen = () => {
6969 ) ;
7070
7171 const getHomeWorldEachItem = useCallback ( async ( ) => {
72-
73-
74-
7572 responseListWithoutHomeWorld
7673 . sort ( ( a , b ) => ( String ( a . name ) > String ( b . name ) ? 0 : - 1 ) )
7774 . map ( async ( item ) => {
@@ -125,34 +122,34 @@ const HomeScreen = () => {
125122
126123 const { navigate } = useNavigation < ProfileScreenNavigationProp > ( ) ;
127124
128- const footerButton = ( ) => {
125+ const footerButton = ( ) => {
129126 return (
130127 < Button
131- my = { 'sm' }
132- flexDirection = "row"
133- width = { WINDOW_DEVICE_WIDTH * 0.8 }
134- backgroundColor = { ! hasNextPage ? 'secondary' : 'grayLight' }
135- disabled >
136- { isFetching || hasNextPage ? (
137- < LottieView
138- source = { require ( '../../assets/spinner.json' ) }
139- autoPlay
140- loop
141- hardwareAccelerationAndroid = { false }
142- resizeMode = "contain"
143- style = { {
144- height : 40 ,
145- width : 40 ,
146- } }
147- />
148- ) : (
149- < Typography color = { ! hasNextPage ? 'primary' : 'secondary' } >
150- All list is loaded
151- </ Typography >
152- ) }
153- </ Button >
154- )
155- }
128+ my = { 'sm' }
129+ flexDirection = "row"
130+ width = { WINDOW_DEVICE_WIDTH * 0.8 }
131+ backgroundColor = { ! hasNextPage ? 'secondary' : 'grayLight' }
132+ disabled >
133+ { isFetching || hasNextPage ? (
134+ < LottieView
135+ source = { require ( '../../assets/spinner.json' ) }
136+ autoPlay
137+ loop
138+ hardwareAccelerationAndroid = { false }
139+ resizeMode = "contain"
140+ style = { {
141+ height : 40 ,
142+ width : 40 ,
143+ } }
144+ />
145+ ) : (
146+ < Typography color = { ! hasNextPage ? 'primary' : 'secondary' } >
147+ All list is loaded
148+ </ Typography >
149+ ) }
150+ </ Button >
151+ ) ;
152+ } ;
156153 return (
157154 < SafeAreaView style = { styles . safeArea } >
158155 < StatusBar barStyle = "light-content" />
@@ -229,5 +226,3 @@ const styles = StyleSheet.create({
229226 backgroundColor : theme . colors . backgroundColor ,
230227 } ,
231228} ) ;
232-
233-
0 commit comments