fln-espranza 0.0.42 → 0.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/.expo/README.md +15 -15
  2. package/.expo/settings.json +8 -8
  3. package/components/Avatar.tsx +43 -43
  4. package/components/BaseLayout.tsx +174 -174
  5. package/components/Drawer.tsx +125 -125
  6. package/components/EBadge.tsx +24 -24
  7. package/components/EButton.tsx +70 -70
  8. package/components/EDateAndTimeCard.tsx +51 -51
  9. package/components/EDateInput.tsx +55 -55
  10. package/components/EEmptyPlaceholder.tsx +21 -21
  11. package/components/EErrorText.tsx +19 -19
  12. package/components/EInfoBox.tsx +41 -41
  13. package/components/EInput.tsx +54 -54
  14. package/components/ELabel.tsx +15 -15
  15. package/components/EListClusterMeeting.tsx +47 -0
  16. package/components/EListPerson.tsx +52 -52
  17. package/components/EListSchool.tsx +35 -35
  18. package/components/ENotFoundPlaceholder.tsx +43 -43
  19. package/components/EOption.tsx +98 -98
  20. package/components/EOtpInputBox.tsx +49 -49
  21. package/components/EPageDescription.tsx +19 -19
  22. package/components/EPillButton.tsx +33 -33
  23. package/components/EProfile.tsx +58 -62
  24. package/components/EProfileScreenLayout.tsx +111 -111
  25. package/components/EProgressBar.tsx +33 -33
  26. package/components/EQuestionSerialNumberLabel.tsx +17 -17
  27. package/components/EQuestionText.tsx +14 -14
  28. package/components/ESegment.tsx +36 -36
  29. package/components/EStat.tsx +24 -24
  30. package/components/EText.tsx +41 -41
  31. package/components/ETextArea.tsx +53 -53
  32. package/components/ETimeInput.tsx +54 -54
  33. package/components/ETimeLineCard.tsx +66 -66
  34. package/components/ListFormView.tsx +36 -36
  35. package/components/Loader.tsx +31 -31
  36. package/components/MenuItems.tsx +46 -46
  37. package/components/PageHeader.tsx +124 -123
  38. package/components/ProfileHeader.tsx +85 -85
  39. package/components/SecondaryBaseLayout.tsx +106 -106
  40. package/components/Timer.tsx +56 -56
  41. package/components/icons/EIconAdd.jsx +19 -19
  42. package/components/icons/EIconAddCircle.jsx +21 -21
  43. package/components/icons/EIconApplicationStatus.jsx +20 -20
  44. package/components/icons/EIconArrowDown.jsx +20 -20
  45. package/components/icons/EIconArrowLeft.jsx +21 -21
  46. package/components/icons/EIconArrowRight.jsx +21 -21
  47. package/components/icons/EIconArrowUp.jsx +20 -20
  48. package/components/icons/EIconBadge.jsx +20 -20
  49. package/components/icons/EIconBell.jsx +19 -19
  50. package/components/icons/EIconCalendar.jsx +21 -21
  51. package/components/icons/EIconCalendarCheck.jsx +24 -24
  52. package/components/icons/EIconCamera.jsx +20 -20
  53. package/components/icons/EIconCameraRotate.jsx +23 -23
  54. package/components/icons/EIconCheck.jsx +19 -19
  55. package/components/icons/EIconCheckCircle.jsx +20 -20
  56. package/components/icons/EIconCheckFill.jsx +19 -19
  57. package/components/icons/EIconChevronDown.jsx +19 -19
  58. package/components/icons/EIconChevronLeft.jsx +19 -19
  59. package/components/icons/EIconChevronRight.jsx +19 -19
  60. package/components/icons/EIconChevronUp.jsx +19 -19
  61. package/components/icons/EIconClock.jsx +19 -19
  62. package/components/icons/EIconClose.jsx +19 -19
  63. package/components/icons/EIconDashboard.jsx +20 -20
  64. package/components/icons/EIconDocumentCheck.jsx +14 -14
  65. package/components/icons/EIconEdit.jsx +19 -19
  66. package/components/icons/EIconFemale.jsx +20 -20
  67. package/components/icons/EIconFile.jsx +21 -21
  68. package/components/icons/EIconInfo.jsx +20 -20
  69. package/components/icons/EIconLogout.jsx +19 -19
  70. package/components/icons/EIconMale.jsx +21 -21
  71. package/components/icons/EIconMenu.jsx +19 -19
  72. package/components/icons/EIconMinus.jsx +19 -19
  73. package/components/icons/EIconPin.jsx +19 -19
  74. package/components/icons/EIconProfile.jsx +19 -19
  75. package/components/icons/EIconSchool.jsx +24 -24
  76. package/components/icons/EIconSearch.jsx +19 -19
  77. package/components/icons/EIconSettings.jsx +20 -20
  78. package/components/icons/EIconShare.jsx +21 -21
  79. package/components/icons/EIconStudent.jsx +23 -23
  80. package/components/icons/EIconSubject.jsx +21 -21
  81. package/components/icons/EIconTeach.jsx +21 -21
  82. package/components/icons/EIconTrash.jsx +19 -19
  83. package/components/icons/EIconUserCard.jsx +19 -19
  84. package/components/icons/EIconUserCheck.jsx +20 -20
  85. package/components/icons/EIconUsers.jsx +19 -19
  86. package/components/index.tsx +69 -67
  87. package/index.ts +184 -184
  88. package/package.json +26 -26
  89. package/utils/Color.ts +14 -14
@@ -1,123 +1,124 @@
1
- import { View, Animated, Dimensions, TouchableOpacity } from "react-native";
2
- import React, { useEffect, useRef } from "react";
3
- import tw from "../lib/tailwind";
4
- import { useNavigation } from "@react-navigation/native";
5
- import EText from "./EText";
6
- import Constants from "expo-constants";
7
- import EIconArrowLeft from "./icons/EIconArrowLeft";
8
- import EIconMenu from "./icons/EIconMenu";
9
-
10
- const SCREEN_WIDTH = Dimensions.get("window").width;
11
- const HEADER_HEIGHT = 90;
12
-
13
- interface PageHeaderProps {
14
- title: string;
15
- subtitle?: string;
16
- curved?: boolean;
17
- children?: JSX.Element;
18
- iconEnd?: JSX.Element;
19
- border?: boolean;
20
- menuButton?: boolean;
21
- hideBackBtn?: boolean;
22
- }
23
-
24
- export default function PageHeader({
25
- title,
26
- subtitle,
27
- curved,
28
- children,
29
- iconEnd,
30
- border,
31
- menuButton,
32
- hideBackBtn
33
- }: PageHeaderProps) {
34
- const navigation = useNavigation();
35
-
36
- const translateX = useRef(new Animated.Value(60)).current;
37
- const opacity = useRef(new Animated.Value(0)).current;
38
-
39
- useEffect(() => {
40
- Animated.spring(translateX, {
41
- toValue: 0,
42
- stiffness: 40,
43
- damping: 10,
44
- useNativeDriver: true,
45
- }).start();
46
- Animated.spring(opacity, {
47
- toValue: 1,
48
- delay: 250,
49
- useNativeDriver: true,
50
- }).start();
51
- });
52
- return (
53
- <View style={[tw`${"border-none border-slate-300 bg-white shadow-lg py-3"} `, {}]}>
54
- <View style={tw`overflow-hidden`}>
55
- <View
56
- style={[
57
- tw`flex-row items-center px-3`,
58
- {
59
- paddingTop: Constants.statusBarHeight + 8,
60
- },
61
- ]}
62
- >
63
- {/* LEFT ICON */}
64
- {hideBackBtn
65
- ? <></>
66
- :
67
- <View
68
- style={[tw``]}
69
- >
70
- {menuButton ?
71
- <TouchableOpacity activeOpacity={0.6}
72
- onPress={() => navigation?.openDrawer()}>
73
- <EIconMenu
74
- size={24}
75
- style={tw`text-slate-800`}
76
- />
77
- </TouchableOpacity>
78
-
79
- :
80
- <TouchableOpacity activeOpacity={0.6}
81
- onPress={() => navigation.goBack()}>
82
- <EIconArrowLeft
83
- iconColor={curved ? "white" : "tint-slate-900"}
84
- size={24}
85
- // onPress={() => navigation.navigate("Dashboard")}
86
- style={tw`text-slate-800`}
87
- />
88
- </TouchableOpacity>
89
- }
90
- </View>
91
-
92
- }
93
- {/* TITLE */}
94
- <View style={tw`flex-1 items-start px-3`}>
95
- <EText
96
- size="lg"
97
- style={tw.style("text-slate-800 font-bold")}
98
- >
99
- {title}
100
- </EText>
101
- {subtitle ? (
102
- <EText
103
- style={tw.style(
104
- "text-slate-800 opacity-40 font-semibold mt-0.25"
105
- )}
106
- >
107
- {subtitle}
108
- </EText>
109
- ) : null}
110
- </View>
111
-
112
- {/* RIGHT ICON */}
113
- {iconEnd ? (
114
- <View style={[tw``, {}]}>
115
- {iconEnd}
116
- </View>
117
- ) : null}
118
- </View>
119
- {children ? <View style={tw.style("pb-6")}>{children}</View> : null}
120
- </View>
121
- </View>
122
- );
123
- }
1
+ import { View, Animated, Dimensions, TouchableOpacity } from "react-native";
2
+ import React, { useEffect, useRef } from "react";
3
+ import tw from "../lib/tailwind";
4
+ import { useNavigation } from "@react-navigation/native";
5
+ import EText from "./EText";
6
+ import Constants from "expo-constants";
7
+ import EIconArrowLeft from "./icons/EIconArrowLeft";
8
+ import EIconMenu from "./icons/EIconMenu";
9
+
10
+ const SCREEN_WIDTH = Dimensions.get("window").width;
11
+ const HEADER_HEIGHT = 90;
12
+
13
+ interface PageHeaderProps {
14
+ title: string;
15
+ subtitle?: string;
16
+ curved?: boolean;
17
+ children?: JSX.Element;
18
+ iconEnd?: JSX.Element;
19
+ border?: boolean;
20
+ menuButton?: boolean;
21
+ hideBackBtn?: boolean;
22
+ }
23
+
24
+ export default function PageHeader({
25
+ title,
26
+ subtitle,
27
+ curved,
28
+ children,
29
+ iconEnd,
30
+ border,
31
+ menuButton,
32
+ hideBackBtn
33
+ }: PageHeaderProps) {
34
+ const navigation = useNavigation();
35
+
36
+ const translateX = useRef(new Animated.Value(60)).current;
37
+ const opacity = useRef(new Animated.Value(0)).current;
38
+
39
+ useEffect(() => {
40
+ Animated.spring(translateX, {
41
+ toValue: 0,
42
+ stiffness: 40,
43
+ damping: 10,
44
+ useNativeDriver: true,
45
+ }).start();
46
+ Animated.spring(opacity, {
47
+ toValue: 1,
48
+ delay: 250,
49
+ useNativeDriver: true,
50
+ }).start();
51
+ });
52
+ return (
53
+ <View style={[tw`${"border-none border-slate-300 bg-white shadow-lg py-3"} `, {}]}>
54
+ <View style={tw`overflow-hidden`}>
55
+ <View
56
+ style={[
57
+ tw`flex-row items-center px-3`,
58
+ {
59
+ paddingTop: Constants.statusBarHeight + 8,
60
+ },
61
+ ]}
62
+ >
63
+ {/* LEFT ICON */}
64
+ {hideBackBtn
65
+ ? <></>
66
+ :
67
+ <View
68
+ style={[tw``]}
69
+ >
70
+ {menuButton ?
71
+ <TouchableOpacity activeOpacity={0.6}
72
+ onPress={() => navigation?.openDrawer()}>
73
+ <EIconMenu
74
+ size={24}
75
+ style={tw`text-slate-800`}
76
+ />
77
+ </TouchableOpacity>
78
+
79
+ :
80
+ <TouchableOpacity activeOpacity={0.6}
81
+ onPress={() => navigation.goBack()}>
82
+ <EIconArrowLeft
83
+ iconColor={curved ? "white" : "tint-slate-900"}
84
+ size={24}
85
+ // onPress={() => navigation.navigate("Dashboard")}
86
+ style={tw`text-slate-800`}
87
+ />
88
+ </TouchableOpacity>
89
+ }
90
+ </View>
91
+
92
+ }
93
+ {/* TITLE */}
94
+ <View style={tw`flex-1 items-start px-3`}>
95
+ <EText
96
+ size="lg"
97
+ style={tw.style("text-slate-800 font-bold")}
98
+ numberOfLines={1}
99
+ >
100
+ {title}
101
+ </EText>
102
+ {subtitle ? (
103
+ <EText
104
+ style={tw.style(
105
+ "text-slate-800 opacity-40 font-semibold mt-0.25"
106
+ )}
107
+ >
108
+ {subtitle}
109
+ </EText>
110
+ ) : null}
111
+ </View>
112
+
113
+ {/* RIGHT ICON */}
114
+ {iconEnd ? (
115
+ <View style={[tw``, {}]}>
116
+ {iconEnd}
117
+ </View>
118
+ ) : null}
119
+ </View>
120
+ {children ? <View style={tw.style("pb-6")}>{children}</View> : null}
121
+ </View>
122
+ </View>
123
+ );
124
+ }
@@ -1,85 +1,85 @@
1
- import { useNavigation } from "@react-navigation/native";
2
- import React, { useRef } from "react";
3
- import { Animated, ImageBackground, View } from "react-native";
4
- import EButtonIcon from "./EButtonIcon";
5
- import Avatar from "./Avatar";
6
- import EText from "./EText";
7
- import tw from "../lib/tailwind"
8
- import Constants from "expo-constants";
9
-
10
- interface IProps {
11
- name: string;
12
- titleText?: string;
13
- title: string;
14
- }
15
-
16
- export default function ProfileHeader({ name, title, titleText }: IProps) {
17
- const translateX = useRef(new Animated.Value(60)).current;
18
- const opacity = useRef(new Animated.Value(0)).current;
19
- const navigation = useNavigation();
20
-
21
- React.useEffect(() => {
22
- Animated.spring(translateX, {
23
- toValue: 0,
24
- stiffness: 40,
25
- damping: 10,
26
- useNativeDriver: true,
27
- }).start();
28
- Animated.spring(opacity, {
29
- toValue: 1,
30
- delay: 250,
31
- useNativeDriver: true,
32
- }).start();
33
- });
34
-
35
- return (
36
- <View style={tw`flex-1 overflow-hidden h-full`}>
37
- <ImageBackground
38
- style={[tw`h-full w-full`, {}]}
39
- source={require("../assets/images/bg-profile.jpg")}
40
- >
41
- <Animated.View
42
- style={[
43
- tw`flex-row pr-4 pl-3 pb-3`,
44
- {
45
- paddingTop: Constants.statusBarHeight + 8,
46
- transform: [{ translateX }],
47
- opacity,
48
- },
49
- ]}
50
- >
51
- <Animated.View
52
- style={[
53
- tw`-mt-2 left-3 absolute `,
54
- {
55
- transform: [{ translateX }],
56
- opacity,
57
- paddingTop: Constants.statusBarHeight + 8,
58
- },
59
- ]}
60
- >
61
- <EButtonIcon
62
- iconColor={"tint-white"}
63
- size={20}
64
- onPress={() => navigation.goBack()}
65
- />
66
- </Animated.View>
67
- </Animated.View>
68
- <View style={[tw`flex items-center mt-5 rounded-4xl `, {}]}>
69
- <Avatar size="5xl" source={""} nameFirstLetter={name?.split("")[0]} />
70
- <View style={tw`mt-6 mb-8 items-center`}>
71
- <EText size="2xl" style={tw`font-bold text-white capitalize`}>
72
- {name.toLocaleLowerCase().trim()}
73
- </EText>
74
- <EText
75
- size="sm"
76
- style={tw`mt-0.5 font-normal opacity-50 text-white`}
77
- >
78
- {titleText ? titleText : "Unique Code"} : {title}
79
- </EText>
80
- </View>
81
- </View>
82
- </ImageBackground>
83
- </View>
84
- );
85
- }
1
+ import { useNavigation } from "@react-navigation/native";
2
+ import React, { useRef } from "react";
3
+ import { Animated, ImageBackground, View } from "react-native";
4
+ import EButtonIcon from "./EButtonIcon";
5
+ import Avatar from "./Avatar";
6
+ import EText from "./EText";
7
+ import tw from "../lib/tailwind"
8
+ import Constants from "expo-constants";
9
+
10
+ interface IProps {
11
+ name: string;
12
+ titleText?: string;
13
+ title: string;
14
+ }
15
+
16
+ export default function ProfileHeader({ name, title, titleText }: IProps) {
17
+ const translateX = useRef(new Animated.Value(60)).current;
18
+ const opacity = useRef(new Animated.Value(0)).current;
19
+ const navigation = useNavigation();
20
+
21
+ React.useEffect(() => {
22
+ Animated.spring(translateX, {
23
+ toValue: 0,
24
+ stiffness: 40,
25
+ damping: 10,
26
+ useNativeDriver: true,
27
+ }).start();
28
+ Animated.spring(opacity, {
29
+ toValue: 1,
30
+ delay: 250,
31
+ useNativeDriver: true,
32
+ }).start();
33
+ });
34
+
35
+ return (
36
+ <View style={tw`flex-1 overflow-hidden h-full`}>
37
+ <ImageBackground
38
+ style={[tw`h-full w-full`, {}]}
39
+ source={require("../assets/images/bg-profile.jpg")}
40
+ >
41
+ <Animated.View
42
+ style={[
43
+ tw`flex-row pr-4 pl-3 pb-3`,
44
+ {
45
+ paddingTop: Constants.statusBarHeight + 8,
46
+ transform: [{ translateX }],
47
+ opacity,
48
+ },
49
+ ]}
50
+ >
51
+ <Animated.View
52
+ style={[
53
+ tw`-mt-2 left-3 absolute `,
54
+ {
55
+ transform: [{ translateX }],
56
+ opacity,
57
+ paddingTop: Constants.statusBarHeight + 8,
58
+ },
59
+ ]}
60
+ >
61
+ <EButtonIcon
62
+ iconColor={"tint-white"}
63
+ size={20}
64
+ onPress={() => navigation.goBack()}
65
+ />
66
+ </Animated.View>
67
+ </Animated.View>
68
+ <View style={[tw`flex items-center mt-5 rounded-4xl `, {}]}>
69
+ <Avatar size="5xl" source={""} nameFirstLetter={name?.split("")[0]} />
70
+ <View style={tw`mt-6 mb-8 items-center`}>
71
+ <EText size="2xl" style={tw`font-bold text-white capitalize`}>
72
+ {name.toLocaleLowerCase().trim()}
73
+ </EText>
74
+ <EText
75
+ size="sm"
76
+ style={tw`mt-0.5 font-normal opacity-50 text-white`}
77
+ >
78
+ {titleText ? titleText : "Unique Code"} : {title}
79
+ </EText>
80
+ </View>
81
+ </View>
82
+ </ImageBackground>
83
+ </View>
84
+ );
85
+ }
@@ -1,106 +1,106 @@
1
- import { View, Dimensions, ScrollView, Platform } from "react-native";
2
- import React from "react";
3
- import { useSafeAreaInsets } from "react-native-safe-area-context";
4
- import tw from "../lib/tailwind";
5
- import { StatusBar } from "expo-status-bar";
6
- import { PageHeader } from ".";
7
- import Constants from "expo-constants";
8
- import { useNavigation } from "@react-navigation/native";
9
-
10
- const SCREEN_WIDTH = Dimensions.get("window").width;
11
- const SCREEN_HEIGHT = Dimensions.get("window").height;
12
- const HEADER_HEIGHT = Constants.statusBarHeight + 60;
13
- const SCROLL_PADDING_BOTTOM = 100;
14
-
15
- interface BaseLayoutProps {
16
- title: string;
17
- subtitle?: string;
18
- curved?: boolean;
19
- headerContent?: JSX.Element;
20
- children?: JSX.Element | JSX.Element[];
21
- iconEnd?: JSX.Element;
22
- noScroll?: boolean;
23
- bottomButton?: JSX.Element;
24
- border?: boolean;
25
- menuButton?: boolean;
26
- paddingTop?: number;
27
- hideBackBtn?: boolean;
28
- }
29
-
30
- export default function SecondaryBaseLayout({
31
- title,
32
- subtitle,
33
- curved,
34
- headerContent,
35
- children,
36
- noScroll,
37
- iconEnd,
38
- bottomButton,
39
- border,
40
- menuButton,
41
- paddingTop,
42
- hideBackBtn
43
- }: BaseLayoutProps) {
44
- const insets = useSafeAreaInsets();
45
-
46
- const navigation = useNavigation();
47
-
48
- return (
49
- <View
50
- style={[
51
- tw`flex-1 bg-white`,
52
- {
53
- paddingBottom: Platform.OS === "ios" ? insets.bottom : 0,
54
- paddingTop: Platform.OS === "ios" ? paddingTop ? paddingTop : 44 : paddingTop ? paddingTop : 24,
55
- },
56
- ]}
57
- >
58
- <StatusBar style="dark" animated />
59
-
60
- {/* HEADER */}
61
- <View
62
- style={[
63
- tw`absolute top-0 right-0 left-0 pt-0 z-10 w-full bg-white ${title ? "mb-1" : "pb-0"
64
- }`,
65
- ]}
66
- >
67
- <PageHeader
68
- border={border}
69
- title={title}
70
- subtitle={subtitle}
71
- curved={curved}
72
- iconEnd={iconEnd}
73
- menuButton={menuButton}
74
- hideBackBtn={hideBackBtn}
75
- >
76
- {headerContent}
77
- </PageHeader>
78
- </View>
79
- <ScrollView
80
- style={[
81
- tw`flex-1`,
82
- { paddingBottom: insets.bottom, paddingTop: !title ? 80 : 80 },
83
- ]}
84
- showsVerticalScrollIndicator={false}
85
- decelerationRate={"fast"}
86
- contentContainerStyle={{
87
- paddingBottom: SCROLL_PADDING_BOTTOM,
88
- }}
89
- >
90
- {children}
91
- </ScrollView>
92
- {bottomButton ? (
93
- <View
94
- style={[
95
- tw` px-4 `,
96
- { paddingBottom: Platform.OS === "android" ? 8 : 0 },
97
- ]}
98
- >
99
- {bottomButton}
100
- </View>
101
- ) : (
102
- <></>
103
- )}
104
- </View>
105
- );
106
- }
1
+ import { View, Dimensions, ScrollView, Platform } from "react-native";
2
+ import React from "react";
3
+ import { useSafeAreaInsets } from "react-native-safe-area-context";
4
+ import tw from "../lib/tailwind";
5
+ import { StatusBar } from "expo-status-bar";
6
+ import { PageHeader } from ".";
7
+ import Constants from "expo-constants";
8
+ import { useNavigation } from "@react-navigation/native";
9
+
10
+ const SCREEN_WIDTH = Dimensions.get("window").width;
11
+ const SCREEN_HEIGHT = Dimensions.get("window").height;
12
+ const HEADER_HEIGHT = Constants.statusBarHeight + 60;
13
+ const SCROLL_PADDING_BOTTOM = 100;
14
+
15
+ interface BaseLayoutProps {
16
+ title: string;
17
+ subtitle?: string;
18
+ curved?: boolean;
19
+ headerContent?: JSX.Element;
20
+ children?: JSX.Element | JSX.Element[];
21
+ iconEnd?: JSX.Element;
22
+ noScroll?: boolean;
23
+ bottomButton?: JSX.Element;
24
+ border?: boolean;
25
+ menuButton?: boolean;
26
+ paddingTop?: number;
27
+ hideBackBtn?: boolean;
28
+ }
29
+
30
+ export default function SecondaryBaseLayout({
31
+ title,
32
+ subtitle,
33
+ curved,
34
+ headerContent,
35
+ children,
36
+ noScroll,
37
+ iconEnd,
38
+ bottomButton,
39
+ border,
40
+ menuButton,
41
+ paddingTop,
42
+ hideBackBtn
43
+ }: BaseLayoutProps) {
44
+ const insets = useSafeAreaInsets();
45
+
46
+ const navigation = useNavigation();
47
+
48
+ return (
49
+ <View
50
+ style={[
51
+ tw`flex-1 bg-white`,
52
+ {
53
+ paddingBottom: Platform.OS === "ios" ? insets.bottom : 0,
54
+ paddingTop: Platform.OS === "ios" ? paddingTop ? paddingTop : 44 : paddingTop ? paddingTop : 24,
55
+ },
56
+ ]}
57
+ >
58
+ <StatusBar style="dark" animated />
59
+
60
+ {/* HEADER */}
61
+ <View
62
+ style={[
63
+ tw`absolute top-0 right-0 left-0 pt-0 z-10 w-full bg-white ${title ? "mb-1" : "pb-0"
64
+ }`,
65
+ ]}
66
+ >
67
+ <PageHeader
68
+ border={border}
69
+ title={title}
70
+ subtitle={subtitle}
71
+ curved={curved}
72
+ iconEnd={iconEnd}
73
+ menuButton={menuButton}
74
+ hideBackBtn={hideBackBtn}
75
+ >
76
+ {headerContent}
77
+ </PageHeader>
78
+ </View>
79
+ <ScrollView
80
+ style={[
81
+ tw`flex-1`,
82
+ { paddingBottom: insets.bottom, paddingTop: !title ? 80 : 80 },
83
+ ]}
84
+ showsVerticalScrollIndicator={false}
85
+ decelerationRate={"fast"}
86
+ contentContainerStyle={{
87
+ paddingBottom: SCROLL_PADDING_BOTTOM,
88
+ }}
89
+ >
90
+ {children}
91
+ </ScrollView>
92
+ {bottomButton ? (
93
+ <View
94
+ style={[
95
+ tw` px-4 `,
96
+ { paddingBottom: Platform.OS === "android" ? 8 : 0 },
97
+ ]}
98
+ >
99
+ {bottomButton}
100
+ </View>
101
+ ) : (
102
+ <></>
103
+ )}
104
+ </View>
105
+ );
106
+ }