@@ -28,7 +28,7 @@ import {AppendAd} from '../../../InkNest-Externals/Ads/AppendAd';
28
28
import AnimeAdbanner from '../../../Components/UIComp/AnimeAdBanner/AnimeAdbanner' ;
29
29
import { clearHistory } from '../../../Redux/Reducers' ;
30
30
import { ComicHostName } from '../../../Utils/APIs' ;
31
- import { widthPercentageToDP } from 'react-native-responsive-screen' ;
31
+ import { widthPercentageToDP } from 'react-native-responsive-screen' ;
32
32
33
33
export function Home ( { navigation} ) {
34
34
const flatListRef = useRef ( null ) ;
@@ -97,41 +97,50 @@ export function Home({navigation}) {
97
97
return (
98
98
< SafeAreaView style = { styles . container } edges = { [ 'top' ] } >
99
99
< ScrollView showsVerticalScrollIndicator = { false } >
100
- { /* Temp UI Start for Switch Server */ }
101
- < View style = { { flex : 1 , flexDirection : 'row' , gap : 15 } } >
102
- < TouchableOpacity
103
- onPress = { ( ) => {
104
- setChangeType ( ! changeType ) ;
105
- crashlytics ( ) . log ( 'Comic Host Name Clicked' ) ;
106
- } }
107
- style = { styles . rectangle } >
108
- < Text
109
- style = { {
110
- fontSize : 16 ,
111
- fontWeight : '700' ,
112
- color : '#fff' ,
113
- textAlign : 'left' ,
114
- } } >
115
- { type }
116
- </ Text >
117
- < AntDesign name = "down" size = { 20 } color = "#fff" />
118
- </ TouchableOpacity >
119
- < TouchableOpacity
120
- style = { {
121
- borderRadius : 100 ,
122
- backgroundColor : 'rgba(255, 255, 255, 0.05)' ,
123
- width : 40 ,
124
- height : 40 ,
125
- alignItems : 'center' ,
126
- justifyContent : 'center' ,
127
- } }
128
- onPress = { ( ) => {
129
- crashlytics ( ) . log ( 'Home Search button clicked' ) ;
130
- navigation . navigate ( NAVIGATION . search ) ;
131
- } } >
132
- < AntDesign name = "search1" size = { 20 } color = "#fff" />
133
- </ TouchableOpacity >
134
- </ View >
100
+ { getVersion ( ) === forIosValue &&
101
+ forIosLoading === false ? null : forIosLoading === false ? (
102
+ < >
103
+ < View style = { { flex : 1 , flexDirection : 'row' , gap : 15 } } >
104
+ < TouchableOpacity
105
+ onPress = { ( ) => {
106
+ setChangeType ( ! changeType ) ;
107
+ crashlytics ( ) . log ( 'Comic Host Name Clicked' ) ;
108
+ analytics ( ) . logEvent ( 'comic_host_name_clicked' , {
109
+ hostName : type . toString ( ) ,
110
+ } ) ;
111
+ } }
112
+ style = { styles . rectangle } >
113
+ < Text
114
+ style = { {
115
+ fontSize : 16 ,
116
+ fontWeight : '700' ,
117
+ color : '#fff' ,
118
+ textAlign : 'left' ,
119
+ } } >
120
+ { type }
121
+ </ Text >
122
+ < AntDesign name = "down" size = { 20 } color = "#fff" />
123
+ </ TouchableOpacity >
124
+ < TouchableOpacity
125
+ style = { {
126
+ borderRadius : 100 ,
127
+ backgroundColor : 'rgba(255, 255, 255, 0.05)' ,
128
+ width : 40 ,
129
+ height : 40 ,
130
+ alignItems : 'center' ,
131
+ justifyContent : 'center' ,
132
+ } }
133
+ onPress = { ( ) => {
134
+ crashlytics ( ) . log ( 'Home Search button clicked' ) ;
135
+ navigation . navigate ( NAVIGATION . search ) ;
136
+ } } >
137
+ < AntDesign name = "search1" size = { 20 } color = "#fff" />
138
+ </ TouchableOpacity >
139
+ </ View >
140
+
141
+ < AnimeAdbanner />
142
+ </ >
143
+ ) : null }
135
144
{ changeType ? (
136
145
< View
137
146
style = { {
@@ -217,10 +226,6 @@ export function Home({navigation}) {
217
226
</ View >
218
227
) : null }
219
228
220
- { /* Temp UI End for Switch Server */ }
221
-
222
- < AnimeAdbanner />
223
-
224
229
{ ! Object . values ( History ) . length ? null : (
225
230
< View style = { styles . gameDetailsParent } >
226
231
< View
0 commit comments