This repository was archived by the owner on Nov 27, 2022. It is now read-only.
File tree 2 files changed +18
-9
lines changed
2 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 1
- export { default as TabView , Props as TabViewProps } from './TabView' ;
2
- export { default as TabBar , Props as TabBarProps } from './TabBar' ;
3
- export {
4
- default as TabBarIndicator ,
5
- Props as TabBarIndicatorProps ,
6
- } from './TabBarIndicator' ;
1
+ import * as tv from './TabView' ;
2
+ import * as tb from './TabBar' ;
3
+ import * as tbi from './TabBarIndicator' ;
4
+ import * as types from './types' ;
5
+
6
+ // help babel to transpile the types correctly
7
+ export type TabViewProps < T extends types . Route > = tv . Props < T > ;
8
+ export type TabBarProps < T extends types . Route > = tb . Props < T > ;
9
+ export type TabBarIndicatorProps < T extends types . Route > = tbi . Props < T > ;
10
+ export type Route = types . Route ;
11
+ export type NavigationState < T extends types . Route > = types . NavigationState < T > ;
12
+ export type SceneRendererProps = types . SceneRendererProps ;
13
+
14
+ export { default as TabView } from './TabView' ;
15
+ export { default as TabBar } from './TabBar' ;
16
+ export { default as TabBarIndicator } from './TabBarIndicator' ;
7
17
export { default as SceneMap } from './SceneMap' ;
8
18
export { default as ScrollPager } from './ScrollPager' ;
9
-
10
- export { Route , NavigationState , SceneRendererProps } from './types' ;
Original file line number Diff line number Diff line change 21
21
"resolveJsonModule" : true ,
22
22
"skipLibCheck" : true ,
23
23
"strict" : true ,
24
- "target" : " esnext"
24
+ "target" : " esnext" ,
25
+ "isolatedModules" : true ,
25
26
}
26
27
}
You can’t perform that action at this time.
0 commit comments