Skip to content

Commit 3c0798e

Browse files
authored
Incubator.TransitionView - remove (move hook to Incubator.Dialog) (wix#2228)
* Incubator.TransitionView - remove (move hook to Incubator.Dialog) * Remove types exports
1 parent 684a39f commit 3c0798e

File tree

11 files changed

+4
-167
lines changed

11 files changed

+4
-167
lines changed

demo/src/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,6 @@ module.exports = {
227227
get PanViewScreen() {
228228
return require('./screens/incubatorScreens/PanViewScreen').default;
229229
},
230-
get TransitionViewScreen() {
231-
return require('./screens/incubatorScreens/TransitionViewScreen').default;
232-
},
233230
// realExamples
234231
get AppleMusic() {
235232
return require('./screens/realExamples/AppleMusic').default;

demo/src/screens/MenuStructure.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,7 @@ export const navigationData = {
187187
tags: 'wheel picker spinner experimental',
188188
screen: 'unicorn.incubator.WheelPickerScreen'
189189
},
190-
{title: 'Pan View', tags: 'pan swipe drag', screen: 'unicorn.incubator.PanViewScreen'},
191-
{
192-
title: 'Transition View',
193-
tags: 'transition animation enter exit',
194-
screen: 'unicorn.incubator.TransitionViewScreen'
195-
}
190+
{title: 'Pan View', tags: 'pan swipe drag', screen: 'unicorn.incubator.PanViewScreen'}
196191
]
197192
},
198193
Inspirations: {

demo/src/screens/incubatorScreens/TransitionViewScreen.tsx

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

demo/src/screens/incubatorScreens/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ export function registerScreens(registrar) {
99
registrar('unicorn.components.IncubatorTextFieldScreen', () => require('./IncubatorTextFieldScreen').default);
1010
registrar('unicorn.components.IncubatorToastScreen', () => require('./IncubatorToastScreen').default);
1111
registrar('unicorn.incubator.PanViewScreen', () => require('./PanViewScreen').default);
12-
registrar('unicorn.incubator.TransitionViewScreen', () => require('./TransitionViewScreen').default);
1312
registrar('unicorn.incubator.WheelPickerScreen', () => gestureHandlerRootHOC(require('./WheelPickerScreen').default));
1413
}

src/incubator/Dialog/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Modal from '../../components/modal';
1111
import {extractAlignmentsValues} from '../../commons/modifiers';
1212
import useHiddenLocation from '../hooks/useHiddenLocation';
1313
import usePanGesture from '../panView/usePanGesture';
14-
import useAnimatedTransition, {TransitionViewAnimationType} from '../TransitionView/useAnimatedTransition';
14+
import useAnimatedTransition, {TransitionViewAnimationType} from './useAnimatedTransition';
1515
import DialogHeader from './DialogHeader';
1616
import {DialogProps, DialogDirections, DialogDirectionsEnum, DialogHeaderProps} from './types';
1717
export {DialogProps, DialogDirections, DialogDirectionsEnum, DialogHeaderProps};

src/incubator/Dialog/useFadeView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {useSharedValue, withTiming, useAnimatedStyle} from 'react-native-reanima
44
import {Colors} from 'style';
55
import View from '../../components/view';
66
import {ModalProps} from '../../components/modal';
7-
import {TransitionViewAnimationType} from '../TransitionView';
7+
import {TransitionViewAnimationType} from './useAnimatedTransition';
88
import {DialogProps} from './types';
99

1010
const DEFAULT_OVERLAY_BACKGROUND_COLORS = Colors.rgba(Colors.grey20, 0.65);

src/incubator/TransitionView/index.tsx

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

src/incubator/index.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,4 @@ export {default as TouchableOpacity, TouchableOpacityProps} from './TouchableOpa
77
export {default as WheelPicker, WheelPickerProps, WheelPickerItemProps} from './WheelPicker';
88
export {WheelPickerAlign} from './WheelPicker/types';
99
export {default as PanView, PanViewProps, PanViewDirections, PanViewDismissThreshold} from './panView';
10-
export {
11-
default as TransitionView,
12-
TransitionViewProps,
13-
TransitionViewDirection,
14-
TransitionViewDirectionEnum,
15-
TransitionViewAnimationType
16-
} from './TransitionView';
1710
export {default as Dialog, DialogProps, DialogHeaderProps} from './Dialog';

src/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ export {
3636
WheelPickerAlign,
3737
PanViewProps,
3838
PanViewDirections,
39-
PanViewDismissThreshold,
40-
TransitionViewProps,
41-
TransitionViewDirection,
42-
TransitionViewDirectionEnum,
43-
TransitionViewAnimationType
39+
PanViewDismissThreshold
4440
} from './incubator';
4541
import * as Hooks from './hooks';
4642
import * as Modifiers from './commons/modifiers';

0 commit comments

Comments
 (0)