Skip to content

Commit 9bfda3e

Browse files
author
lijiahao
committed
fix: xcloud default show issue
1 parent a65dda1 commit 9bfda3e

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/components/TitleItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {useTranslation} from 'react-i18next';
1212

1313
type Props = {
1414
titleItem: any;
15-
onPress: (titleItem: any) => {};
15+
onPress: (titleItem: any) => any;
1616
};
1717

1818
const TitleItem: React.FC<Props> = ({titleItem, onPress}) => {

src/pages/Cloud.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,10 @@ function CloudScreen({navigation, route}) {
277277
返回XStreaming,此时你就会发现延迟和丢包都下来了(此时你会看到丢帧比较多,不用紧张,这是因为先进了游戏,未加速时的丢帧比较多,该数值是累计的,等加速稳定后这个数据会降下去),
278278
云游戏加速成功。
279279
</Text>
280+
281+
<Text variant="bodyMedium" style={{marginTop: 10}}>
282+
以上指引仅供参考,具体效果以实际为准,如加速器无法加速,请反馈至对应的加速器应用商,请勿反馈至XStreaming。
283+
</Text>
280284
</Card.Content>
281285
</Card>
282286
</Modal>
@@ -290,7 +294,7 @@ function CloudScreen({navigation, route}) {
290294
* 2 - newest
291295
* 3 - all
292296
*/
293-
switch (current) {
297+
switch (`${current}`) {
294298
case '0':
295299
currentTitles.current = recentTitles;
296300
break;
@@ -345,7 +349,7 @@ function CloudScreen({navigation, route}) {
345349
<Appbar.Content
346350
title={
347351
<SegmentedButtons
348-
value={current}
352+
value={`${current}`}
349353
onValueChange={handleSelectCategories}
350354
buttons={[
351355
{
@@ -434,7 +438,7 @@ function CloudScreen({navigation, route}) {
434438
{isLimited && (
435439
<View style={styles.container}>
436440
<View>
437-
<Text style={styles.tips} category="s1">
441+
<Text style={styles.tips} variant="bodyLarge">
438442
{t('NoXGP')}
439443
</Text>
440444
</View>

0 commit comments

Comments
 (0)