Skip to content

Commit

Permalink
refactor: remove separate screen
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillzyusko committed Jan 3, 2025
1 parent 7354280 commit 8b2f30c
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 81 deletions.
1 change: 0 additions & 1 deletion example/src/constants/screenNames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export enum ScreenNames {
REANIMATED_CHAT_FLAT_LIST = "REANIMATED_CHAT_FLAT_LIST",
EVENTS = "EVENTS",
AWARE_SCROLL_VIEW = "AWARE_SCROLL_VIEW",
AWARE_SCROLL_VIEW_ENTIRE_SCREEN = "AWARE_SCROLL_VIEW_ENTIRE_SCREEN",
AWARE_SCROLL_VIEW_STICKY_FOOTER = "AWARE_SCROLL_VIEW_STICKY_FOOTER",
STATUS_BAR = "STATUS_BAR",
LOTTIE = "LOTTIE",
Expand Down
10 changes: 0 additions & 10 deletions example/src/navigation/ExamplesStack/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React from "react";

import { ScreenNames } from "../../constants/screenNames";
import AwareScrollView from "../../screens/Examples/AwareScrollView";
import AwareScrollViewEntireScreen from "../../screens/Examples/AwareScrollViewEntireScreen";
import AwareScrollViewStickyFooter from "../../screens/Examples/AwareScrollViewStickyFooter";
import CloseScreen from "../../screens/Examples/Close";
import EnabledDisabled from "../../screens/Examples/EnabledDisabled";
Expand Down Expand Up @@ -31,7 +30,6 @@ export type ExamplesStackParamList = {
[ScreenNames.REANIMATED_CHAT_FLAT_LIST]: undefined;
[ScreenNames.EVENTS]: undefined;
[ScreenNames.AWARE_SCROLL_VIEW]: undefined;
[ScreenNames.AWARE_SCROLL_VIEW_ENTIRE_SCREEN]: undefined;
[ScreenNames.AWARE_SCROLL_VIEW_STICKY_FOOTER]: undefined;
[ScreenNames.STATUS_BAR]: undefined;
[ScreenNames.LOTTIE]: undefined;
Expand Down Expand Up @@ -68,9 +66,6 @@ const options = {
[ScreenNames.AWARE_SCROLL_VIEW]: {
title: "Aware scroll view",
},
[ScreenNames.AWARE_SCROLL_VIEW_ENTIRE_SCREEN]: {
title: "Aware scroll view with long text",
},
[ScreenNames.AWARE_SCROLL_VIEW_STICKY_FOOTER]: {
title: "Aware scroll view sticky footer",
},
Expand Down Expand Up @@ -149,11 +144,6 @@ const ExamplesStack = () => (
name={ScreenNames.AWARE_SCROLL_VIEW}
options={options[ScreenNames.AWARE_SCROLL_VIEW]}
/>
<Stack.Screen
component={AwareScrollViewEntireScreen}
name={ScreenNames.AWARE_SCROLL_VIEW_ENTIRE_SCREEN}
options={options[ScreenNames.AWARE_SCROLL_VIEW_ENTIRE_SCREEN]}
/>
<Stack.Screen
component={AwareScrollViewStickyFooter}
name={ScreenNames.AWARE_SCROLL_VIEW_STICKY_FOOTER}
Expand Down
6 changes: 3 additions & 3 deletions example/src/screens/Examples/AwareScrollView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ type Props = StackScreenProps<ExamplesStackParamList>;
const snapToOffsets = [125, 225, 325, 425, 525, 625];

const BIG_TEXT = `Where does it come from?
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the certain source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of The Extremes of Good and Evil by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit..", comes from a line in section 1.10.32.
s
s
s
Where does it come from?
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the certain source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of The Extremes of Good and Evil by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit..", comes from a line in section 1.10.32.
s
s
s
Where does it come from?
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.`;
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the certain source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of The Extremes of Good and Evil by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit..", comes from a line in section 1.10.32.`;

export default function AwareScrollView({ navigation }: Props) {
const bottomSheetModalRef = useRef<BottomSheet>(null);
Expand Down
44 changes: 0 additions & 44 deletions example/src/screens/Examples/AwareScrollViewEntireScreen/index.tsx

This file was deleted.

17 changes: 0 additions & 17 deletions example/src/screens/Examples/AwareScrollViewEntireScreen/styles.ts

This file was deleted.

6 changes: 0 additions & 6 deletions example/src/screens/Examples/Main/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ export const examples: Example[] = [
info: ScreenNames.AWARE_SCROLL_VIEW,
icons: "🤓",
},
{
title: "Aware scroll view with long text",
testID: "aware_scroll_view_entire_screen",
info: ScreenNames.AWARE_SCROLL_VIEW_ENTIRE_SCREEN,
icons: "🤓🏔️",
},
{
title: "Aware scroll view sticky footer",
testID: "aware_scroll_view_sticky_footer",
Expand Down

0 comments on commit 8b2f30c

Please sign in to comment.