import {ROUTE_PATH} from '@/entry/router'; import {useNavigation} from '@react-navigation/native'; import React, {type PropsWithChildren} from 'react'; import { Button, Pressable, StyleSheet, Text, ToastAndroid, View, } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; import rpx from '@/utils/rpx'; import RNFS from 'react-native-fs'; import {Appbar, useTheme} from 'react-native-paper'; import { fontSizeConst } from '@/constants/uiConst'; import color from 'color'; // todo icon: = musicFree(引入自定义字体 居中) search export default function NavBar() { const navigation = useNavigation(); const {colors} = useTheme(); 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(48), borderRadius: rpx(24), }, searchIcon: { marginLeft: rpx(16), }, text: { marginLeft: rpx(6), fontSize: fontSizeConst.small, }, });