You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
BOB_PARTY/bob_party/src/components/GoBackBar.tsx

22 lines
867 B

import { FC, ReactNode } from "react"
import { Pressable, Image, ImageStyle, Text, View, Alert, ImageSourcePropType, TextStyle } from "react-native"
import { Skin } from "../core/Skin"
import React from "react"
import { SkinComponent } from "./skinAvatar"
import MainTabNavigator from "../navigation/AppNavigator"
import { BottomTabNavigationProp } from "@react-navigation/bottom-tabs"
export const GoBackBar :
FC<{title: String, rightIcon: ImageSourcePropType, styleIcon: ImageStyle, nav: any, styleTitle: TextStyle, styleHeader : any}> =
({title, rightIcon, styleIcon, nav, styleTitle, styleHeader}) =>
{
return (
<View style={styleHeader}>
<Text style={styleTitle}>{title}</Text>
<Pressable onPress={() => nav.goBack()}>
<Image source={rightIcon} style={styleIcon}/>
</Pressable>
</View>
)
}