Skip to content

Commit b2fbb73

Browse files
committed
Migrate Incubator index to TS
1 parent 1189046 commit b2fbb73

File tree

7 files changed

+10
-13
lines changed

7 files changed

+10
-13
lines changed

generatedTypes/incubator/TouchableOpacity.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ declare type TouchableOpacityPropTypes = {
3636
/**
3737
* Pass custom style
3838
*/
39-
style: ViewStyle;
39+
style?: ViewStyle;
4040
};
4141
declare const _default: React.ComponentClass<TouchableOpacityPropTypes & {
4242
useCustomTheme?: boolean | undefined;

generatedTypes/incubator/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { default as TabController } from './TabController';
2+
export { default as TouchableOpacity } from './TouchableOpacity';

generatedTypes/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Please use this file for declaring all the exports, so they could be picked up by typescript's complier
55
*/
66
export * from './style';
7+
export * as Incubator from './incubator';
78
export {asBaseComponent, withScrollEnabler, withScrollReached, WithScrollEnablerProps, WithScrollReachedProps} from './commons/new';
89
export {default as Avatar, AvatarPropTypes} from './components/avatar';
910
export {default as Card, CardPropTypes, CardSectionProps} from './components/card';
@@ -65,7 +66,6 @@ export {
6566
StateScreen,
6667
WheelPicker,
6768
WheelPickerProps,
68-
Incubator,
6969
ColorPicker,
7070
Picker,
7171
PickerProps

src/incubator/TouchableOpacity.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ type TouchableOpacityPropTypes = {
6262
/**
6363
* Pass custom style
6464
*/
65-
style: ViewStyle;
65+
style?: ViewStyle;
6666
};
6767

6868

src/incubator/index.js

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

src/incubator/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// @ts-ignore
2+
export {default as TabController} from './TabController';
3+
export {default as TouchableOpacity} from './TouchableOpacity';

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
export * from './style';
8+
export * as Incubator from './incubator';
89
export {default as Avatar, AvatarPropTypes} from './components/avatar';
910
export {default as Card, CardPropTypes, CardSectionProps} from './components/card';
1011
export {default as View, ViewPropTypes} from './components/view';
@@ -27,5 +28,5 @@ export {
2728
PanGestureView, PanListenerView, PanDismissibleView, PanResponderView, Picker, PickerProps, ProgressBar, Slider,
2829
GradientSlider, ColorSliderGroup, Stepper, TagsInput, SharedTransition, StackAggregator, Toast,
2930
WheelPickerDialog, Assets, BaseComponent, PureBaseComponent, UIComponent, forwardRef, AvatarHelper, Constants,
30-
LogService, LoaderScreen, Modal, StateScreen, WheelPicker, WheelPickerProps, Incubator, ColorPicker
31+
LogService, LoaderScreen, Modal, StateScreen, WheelPicker, WheelPickerProps, ColorPicker
3132
} from '../typings';

0 commit comments

Comments
 (0)