-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b410587
commit 7755a38
Showing
12 changed files
with
107 additions
and
2 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
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
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
73 changes: 73 additions & 0 deletions
73
apps/mobile/app/screens/Authenticated/MembersSettingsScreen/index.tsx
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,73 @@ | ||
import { View, Text, ViewStyle, TouchableOpacity, StyleSheet } from "react-native" | ||
import React, { FC } from "react" | ||
import { AuthenticatedDrawerScreenProps } from "../../../navigators/AuthenticatedNavigator" | ||
import { Screen } from "../../../components" | ||
import Animated from "react-native-reanimated" | ||
import { typography, useAppTheme } from "../../../theme" | ||
import { AntDesign } from "@expo/vector-icons" | ||
import { translate } from "../../../i18n" | ||
|
||
export const MembersSettingsScreen: FC<AuthenticatedDrawerScreenProps<"MembersSettingsScreen">> = ( | ||
_props, | ||
) => { | ||
const { colors } = useAppTheme() | ||
const { navigation } = _props | ||
const fall = new Animated.Value(1) | ||
|
||
return ( | ||
<Screen | ||
preset="scroll" | ||
ScrollViewProps={{ bounces: false }} | ||
contentContainerStyle={[$container, { backgroundColor: colors.background2 }]} | ||
safeAreaEdges={["top"]} | ||
> | ||
<Animated.View style={{ opacity: Animated.add(0.1, Animated.multiply(fall, 1.0)) }}> | ||
<View style={[$headerContainer, { backgroundColor: colors.background }]}> | ||
<View style={[styles.container, { backgroundColor: colors.background }]}> | ||
<TouchableOpacity onPress={() => navigation.navigate("Setting")}> | ||
<AntDesign name="arrowleft" size={24} color={colors.primary} /> | ||
</TouchableOpacity> | ||
<Text style={[styles.title, { color: colors.primary }]}> | ||
{translate("settingScreen.membersSettingsScreen.mainTitle")} | ||
</Text> | ||
</View> | ||
</View> | ||
<Text>Members list will be here</Text> | ||
</Animated.View> | ||
</Screen> | ||
) | ||
} | ||
|
||
const $container: ViewStyle = { | ||
flex: 1, | ||
} | ||
|
||
const $headerContainer: ViewStyle = { | ||
padding: 20, | ||
paddingVertical: 16, | ||
shadowColor: "rgba(0, 0, 0, 0.6)", | ||
shadowOffset: { | ||
width: 0, | ||
height: 2, | ||
}, | ||
shadowOpacity: 0.07, | ||
shadowRadius: 1.0, | ||
elevation: 1, | ||
zIndex: 10, | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
alignItems: "center", | ||
flexDirection: "row", | ||
width: "100%", | ||
}, | ||
|
||
title: { | ||
alignSelf: "center", | ||
fontFamily: typography.primary.semiBold, | ||
fontSize: 16, | ||
textAlign: "center", | ||
width: "80%", | ||
}, | ||
}) |
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