import {ROUTE_PATH} from '@/core/router'; import {useNavigation} from '@react-navigation/native'; import React from 'react'; import {Pressable, StyleSheet, View} from 'react-native'; import rpx from '@/utils/rpx'; import useColors from '@/hooks/useColors'; import ThemeText from '@/components/base/themeText'; import Color from 'color'; import IconButton from '@/components/base/iconButton'; import Icon from '@/components/base/icon.tsx'; // todo icon: = musicFree(引入自定义字体 居中) search export default function NavBar() { const navigation = useNavigation(); const colors = useColors(); return ( { navigation?.openDrawer(); }} /> { navigation.navigate(ROUTE_PATH.SEARCH_PAGE); }}> 点击这里开始搜索 ); } const styles = StyleSheet.create({ appbar: { backgroundColor: 'transparent', shadowColor: 'transparent', flexDirection: 'row', alignItems: 'center', width: '100%', height: rpx(88), }, searchBar: { marginHorizontal: rpx(24), flexDirection: 'row', alignItems: 'center', flex: 1, height: '72%', maxHeight: rpx(64), borderRadius: rpx(36), paddingHorizontal: rpx(20), }, text: { marginLeft: rpx(12), opacity: 0.6, }, menu: { marginLeft: rpx(24), }, });