forked from functionland/fx-fotos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request functionland#175 from ghorbani-m/main
- LocalDB sync issue is fixed. - The library tab is implemented. - The library's assets list is added.
- Loading branch information
Showing
21 changed files
with
531 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from "react" | ||
import { Icon, IconProps } from "@rneui/themed" | ||
import { NativeStackNavigationProp } from "@react-navigation/native-stack"; | ||
|
||
interface Props { | ||
iconProps?: IconProps, | ||
navigation?: NativeStackNavigationProp<unknown, unknown>; | ||
} | ||
|
||
export const HeaderArrowBack = ({ iconProps = {}, navigation }: Props) => { | ||
return ( | ||
<Icon type="Ionicons" name="arrow-back" size={28} style={{marginTop:3}} {...iconProps} onPress={() => { | ||
navigation?.pop() | ||
}} /> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from "react" | ||
import { View, ViewStyle, StyleSheet, StyleProp } from "react-native" | ||
|
||
type Props = { | ||
style?: StyleProp<ViewStyle> | ||
} | ||
export const HeaderCenterContainer: React.FC<Props> = ({ style, children }) => { | ||
return ( | ||
<View style={[styles.headerCenterContainer,style]}> | ||
{children} | ||
</View> | ||
) | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
headerCenterContainer: { | ||
flex: 1, | ||
flexDirection: "row", | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from "react" | ||
import { View, ViewStyle, StyleSheet, StyleProp } from "react-native" | ||
|
||
type Props = { | ||
style?: StyleProp<ViewStyle> | ||
} | ||
export const HeaderLeftContainer: React.FC<Props> = ({ style, children }) => { | ||
return ( | ||
<View style={[styles.headerLeftContainer,style]}> | ||
{children} | ||
</View> | ||
) | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
headerLeftContainer: { | ||
flex: 1, | ||
flexDirection: "row", | ||
paddingStart: 5, | ||
alignItems:"center" | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from "react" | ||
import { Image, ImageStyle, StyleProp, StyleSheet } from "react-native" | ||
|
||
type Props = { | ||
style?: StyleProp<ImageStyle> | ||
} | ||
export const HeaderLogo = (props: Props) => { | ||
return ( | ||
<Image | ||
fadeDuration={0} | ||
resizeMode="contain" | ||
source={require("../../../assets/images/logo.png")} | ||
{...props} | ||
style={[styles.logo, props.style]} | ||
/> | ||
) | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
logo: { | ||
height: 30, | ||
alignSelf: "center", | ||
backgroundColor: "transparent" | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from "react" | ||
import { View, ViewStyle, StyleSheet, StyleProp } from "react-native" | ||
|
||
type Props = { | ||
style?: StyleProp<ViewStyle> | ||
} | ||
export const HeaderRightContainer: React.FC<Props> = ({ style, children }) => { | ||
return ( | ||
<View style={[styles.headerRightContainer, style]}> | ||
{children} | ||
</View> | ||
) | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
headerRightContainer: { | ||
flex: 1, | ||
flexDirection: "row", | ||
paddingEnd: 5, | ||
alignItems:"center" | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
export * from "./header" | ||
export * from "./header-center-container" | ||
export * from "./header-left-container" | ||
export * from "./header-right-container" | ||
export * from "./header-arrow-back" | ||
export * from "./header-logo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.