Open History to see the last commit
1import { useScaledTextRole } from "../settings/appearance/useScaledTextRole";
2import { View } from "react-native";
3import { Text } from "@expo/ui/jetpack-compose";
4import { IconButton } from "../../components/ui/IconButton";
5import { NativeAppBar } from "../../components/ui/NativeAppBar.android";
6
7export function NativeAppBarExample() {
8 const typography = useScaledTextRole("title");
9 return (
10 <NativeAppBar
11 title={<Text style={{ fontSize: typography.fontSize }}>Native app bar</Text>}
12 navigationIcon={
13 <IconButton icon="arrow.left" accessibilityLabel="Example back" onPress={() => {}} />
14 }
15 actions={
16 <View className="flex-row">
17 <IconButton
18 icon="magnifyingglass"
19 accessibilityLabel="Example search"
20 onPress={() => {}}
21 />
22 </View>
23 }
24 />
25 );
26}