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