@react-navigation/stack#StackHeaderLeftButtonProps TypeScript Examples
The following examples show how to use
@react-navigation/stack#StackHeaderLeftButtonProps.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ClientsScreen.tsx From expo-hamburger-menu-template with MIT License | 6 votes |
export default function ClientsScreen() {
const navigation = useNavigation();
useEffect(() => {
navigation.setOptions({
headerLeft: (props: StackHeaderLeftButtonProps) => (<MenuIcon/>)
});
});
return (
<View style={main.centered}>
<Text
lightColor="rgba(0,0,0,0.8)"
darkColor="rgba(255,255,255,0.8)"
>
This is Clients Screen
</Text>
</View>
)
}
Example #2
Source File: DatabaseScreen.tsx From expo-hamburger-menu-template with MIT License | 6 votes |
export default function DatabaseScreen() {
const navigation = useNavigation();
useEffect(() => {
navigation.setOptions({
showHeader: true,
headerLeft: (props: StackHeaderLeftButtonProps) => (<MenuIcon/>)
});
});
return (
<View style={main.centered}>
<Text
lightColor="rgba(0,0,0,0.8)"
darkColor="rgba(255,255,255,0.8)"
>
This is Database Screen
</Text>
</View>
)
}
Example #3
Source File: FileSystemScreen.tsx From expo-hamburger-menu-template with MIT License | 6 votes |
export default function FileSystemScreen() {
const navigation = useNavigation();
useEffect(() => {
navigation.setOptions({
headerLeft: (props: StackHeaderLeftButtonProps) => (<MenuIcon/>)
});
});
return (
<View style={main.centered}>
<Text
lightColor="rgba(0,0,0,0.8)"
darkColor="rgba(255,255,255,0.8)"
>
This is FileSystem Screen
</Text>
</View>
)
}