Re-add link to game
這個提交存在於:
父節點
7a58ce6b70
當前提交
aed58f8749
共有 2 個檔案被更改,包括 5 行新增 和 1 行删除
|
|
@ -2,6 +2,8 @@ import React from 'react';
|
|||
import { View, StyleSheet, Image } from 'react-native';
|
||||
import { FAB } from 'react-native-paper';
|
||||
import * as Animatable from 'react-native-animatable';
|
||||
import { useNavigation } from '@react-navigation/core';
|
||||
import { MainRoutes } from '../../navigation/MainNavigator';
|
||||
|
||||
interface Props {
|
||||
icon: string;
|
||||
|
|
@ -74,6 +76,7 @@ const FOCUSED_ICON = require('../../../assets/tab-icon.png');
|
|||
const UNFOCUSED_ICON = require('../../../assets/tab-icon-outline.png');
|
||||
|
||||
function TabHomeIcon(props: Props) {
|
||||
const navigation = useNavigation();
|
||||
const getImage = (iconProps: { size: number; color: string }) => {
|
||||
return (
|
||||
<Animatable.View useNativeDriver={true} animation={'rubberBand'}>
|
||||
|
|
@ -101,6 +104,7 @@ function TabHomeIcon(props: Props) {
|
|||
>
|
||||
<FAB
|
||||
onPress={props.onPress}
|
||||
onLongPress={() => navigation.navigate(MainRoutes.GameStart)}
|
||||
animated={false}
|
||||
icon={getImage}
|
||||
color={'#fff'}
|
||||
|
|
|
|||
|
|
@ -469,7 +469,7 @@ class GameStartScreen extends React.Component<PropsType> {
|
|||
start={{ x: 0, y: 0 }}
|
||||
end={{ x: 0, y: 1 }}
|
||||
>
|
||||
<CollapsibleScrollView>
|
||||
<CollapsibleScrollView headerColors={'transparent'}>
|
||||
{this.getMainContent()}
|
||||
<MascotPopup
|
||||
prefKey={AsyncStorageManager.PREFERENCES.gameStartMascot.key}
|
||||
|
|
|
|||
載入中…
新增問題並參考