index.tsx (e7fa3837138cc7f9a5fa0fb610c27f442edfacc2) index.tsx (f326d0ee22a7e8b43f325620db360050f07c6efa)
1import React from 'react';
2import {StyleSheet, View} from 'react-native';
3import rpx from '@/utils/rpx';
4import ActionButton from './ActionButton';
5import {ROUTE_PATH, useNavigate} from '@/entry/router';
6
7export default function Operations() {
8 const navigate = useNavigate();

--- 25 unchanged lines hidden (view full) ---

34 // },
35 {
36 iconName: 'download',
37 title: '下载列表',
38 action() {
39 navigate(ROUTE_PATH.DOWNLOADING);
40 },
41 },
1import React from 'react';
2import {StyleSheet, View} from 'react-native';
3import rpx from '@/utils/rpx';
4import ActionButton from './ActionButton';
5import {ROUTE_PATH, useNavigate} from '@/entry/router';
6
7export default function Operations() {
8 const navigate = useNavigate();

--- 25 unchanged lines hidden (view full) ---

34 // },
35 {
36 iconName: 'download',
37 title: '下载列表',
38 action() {
39 navigate(ROUTE_PATH.DOWNLOADING);
40 },
41 },
42 {
43 iconName: 'trophy-outline',
44 title: '榜单',
45 action() {
46 console.log('!!');
47 },
48 },
42 ];
43
44 return (
45 <View style={style.wrapper}>
46 {actionButtons.map(action => (
47 <ActionButton key={action.title} {...action} />
48 ))}
49 </View>

--- 13 unchanged lines hidden ---
49 ];
50
51 return (
52 <View style={style.wrapper}>
53 {actionButtons.map(action => (
54 <ActionButton key={action.title} {...action} />
55 ))}
56 </View>

--- 13 unchanged lines hidden ---