import {ROUTE_PATH} from '@/entry/router'; import {useNavigation} from '@react-navigation/native'; import React from 'react'; import {Pressable, StyleSheet} from 'react-native'; import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; import rpx from '@/utils/rpx'; import {Appbar} from 'react-native-paper'; import {iconSizeConst} from '@/constants/uiConst'; import useColors from '@/hooks/useColors'; import ThemeText from '@/components/base/themeText'; import Color from 'color'; // todo icon: = musicFree(引入自定义字体 居中) search export default function NavBar() { const navigation = useNavigation(); const colors = useColors(); return ( { navigation?.openDrawer(); }} /> { navigation.navigate(ROUTE_PATH.SEARCH_PAGE); }}> 点击这里开始搜索 ); } const style = StyleSheet.create({ appbar: { backgroundColor: 'transparent', shadowColor: 'transparent', flexDirection: 'row', width: rpx(750), }, searchBar: { marginHorizontal: rpx(24), flexDirection: 'row', alignItems: 'center', flex: 1, height: rpx(64), borderRadius: rpx(36), paddingHorizontal: rpx(28), }, searchIcon: {}, text: { marginLeft: rpx(12), }, });