Skip to content

Commit

Permalink
Revert "Add a magnifying glass example (#2419)" (#2483)
Browse files Browse the repository at this point in the history
This reverts commit 391fb9a.
  • Loading branch information
wcandillon authored Jun 14, 2024
1 parent cf226be commit 6a8e64e
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 218 deletions.
3 changes: 0 additions & 3 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
Aurora,
Breathe,
Filters,
MagnifyingGlass,
Gooey,
GraphsScreen,
Hue,
Expand Down Expand Up @@ -45,7 +44,6 @@ const linking: LinkingOptions<StackParamList> = {
API: "api",
Breathe: "breathe",
Filters: "filters",
MagnifyingGlass: "magnifying-glass",
Gooey: "gooey",
Hue: "hue",
Matrix: "matrix",
Expand Down Expand Up @@ -129,7 +127,6 @@ const App = () => {
<Stack.Screen name="API" component={API} />
<Stack.Screen name="Breathe" component={Breathe} />
<Stack.Screen name="Filters" component={Filters} />
<Stack.Screen name="MagnifyingGlass" component={MagnifyingGlass} />
<Stack.Screen name="Gooey" component={Gooey} />
<Stack.Screen name="Hue" component={Hue} />
<Stack.Screen
Expand Down
5 changes: 0 additions & 5 deletions example/src/Examples/Examples.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { Matrix } from "./Matrix";
import { Hue } from "./Hue";
import { Glassmorphism } from "./Glassmorphism";
import { Filters } from "./Filters";
import { MagnifyingGlass } from "./MagnifyingGlass";

it("should render the Breathe example correctly", () => {
render(<Breathe />);
Expand Down Expand Up @@ -70,8 +69,4 @@ it("should render the Filter example correctly", () => {
render(<Filters />);
});

it("should render the MagnifyingGlass example correctly", () => {
render(<MagnifyingGlass />);
});

afterEach(cleanup);
193 changes: 0 additions & 193 deletions example/src/Examples/MagnifyingGlass/MagnifyingGlass.tsx

This file was deleted.

1 change: 0 additions & 1 deletion example/src/Examples/MagnifyingGlass/index.tsx

This file was deleted.

10 changes: 1 addition & 9 deletions example/src/Examples/SpeedTest/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ interface Props {
onValueChange: (value: number) => void;
minValue: number;
maxValue: number;
initialValue?: number;
}

const size = 32;
Expand All @@ -28,21 +27,14 @@ export const Slider: React.FC<Props> = ({
onValueChange,
minValue,
maxValue,
initialValue = minValue,
}) => {
const { width } = useWindowDimensions();

const sliderWidth = width / 2;
const pickerR = size / 2;
const progressBarHeight = 3;

const initialTranslateX = interpolate(
initialValue,
[minValue, maxValue],
[-pickerR, sliderWidth - pickerR]
);

const translateX = useSharedValue(initialTranslateX);
const translateX = useSharedValue(-pickerR);
const contextX = useSharedValue(0);
const scale = useSharedValue(1);

Expand Down
1 change: 0 additions & 1 deletion example/src/Examples/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export * from "./Reanimated";
export * from "./API";
export * from "./Breathe";
export * from "./Filters";
export * from "./MagnifyingGlass";
export * from "./Gooey";
export * from "./Matrix";
export * from "./Graphs";
Expand Down
5 changes: 0 additions & 5 deletions example/src/Home/HomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ export const HomeScreen = () => {
description="Simple Image Filters"
route="Filters"
/>
<HomeScreenButton
title="🔍 Magnifying Glass"
description="Magnifying glass filter"
route="MagnifyingGlass"
/>
<HomeScreenButton
title="🟣 Gooey Effect"
description="Simple Gooey effect"
Expand Down
1 change: 0 additions & 1 deletion example/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export type StackParamList = {
API: undefined;
Breathe: undefined;
Filters: undefined;
MagnifyingGlass: undefined;
Gooey: undefined;
Hue: undefined;
Matrix: undefined;
Expand Down

0 comments on commit 6a8e64e

Please sign in to comment.