Skip to content

Commit b3fc141

Browse files
committed
remove legacy drawer layout and it's references
1 parent a4a49fb commit b3fc141

File tree

7 files changed

+3
-970
lines changed

7 files changed

+3
-970
lines changed

DrawerLayout/package.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

example/App.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ import Draggable from './src/basic/draggable';
4848
import MultiTap from './src/basic/multitap';
4949
import BouncingBox from './src/basic/bouncing';
5050
import PanResponder from './src/basic/panResponder';
51-
import HorizontalDrawer from './src/basic/horizontalDrawer';
5251
import PagerAndDrawer from './src/basic/pagerAndDrawer';
5352
import ForceTouch from './src/basic/forcetouch';
5453
import Fling from './src/basic/fling';
@@ -131,7 +130,6 @@ const EXAMPLES: ExamplesSection[] = [
131130
{ name: 'Multitap', component: MultiTap },
132131
{ name: 'Bouncing box', component: BouncingBox },
133132
{ name: 'Pan responder', component: PanResponder },
134-
{ name: 'Horizontal drawer', component: HorizontalDrawer },
135133
{
136134
name: 'Pager & drawer',
137135
component: PagerAndDrawer,

example/src/basic/horizontalDrawer/index.tsx

Lines changed: 0 additions & 194 deletions
This file was deleted.

example/src/new_api/betterHorizontalDrawer/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useRef, useState } from 'react';
22

33
import { StyleSheet, Text, View, TextInput } from 'react-native';
44

5-
import { DrawerType, RectButton } from 'react-native-gesture-handler';
5+
import { RectButton } from 'react-native-gesture-handler';
66
import {
77
DrawerLayoutController,
88
DrawerLayout,
@@ -12,6 +12,8 @@ import Animated, {
1212
interpolate,
1313
} from 'react-native-reanimated';
1414

15+
type DrawerType = 'front' | 'back' | 'back' | 'slide';
16+
1517
const TYPES: DrawerType[] = ['front', 'back', 'back', 'slide'];
1618
const PARALLAX = [false, false, true, false];
1719

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"apple/",
4343
"ReanimatedSwipeable/",
4444
"jest-utils/",
45-
"DrawerLayout/",
4645
"ReanimatedDrawerLayout/",
4746
"README.md",
4847
"jestSetup.js",

0 commit comments

Comments
 (0)