This repository was archived by the owner on Apr 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
// @flow
2
2
3
3
declare module 'react-native-material-bottom-navigation' {
4
+ // A few type definitions.
5
+ // This is adoped from react-navigation/flow/react-navigation.js
4
6
declare type StyleObj =
5
7
| null
6
8
| void
@@ -14,19 +16,17 @@ declare module 'react-native-material-bottom-navigation' {
14
16
declare type AnimatedViewStyleProp = StyleObj
15
17
declare type AnimatedTextStyleProp = StyleObj
16
18
declare type AnimatedValue = Object
19
+ declare type EasingFunction = ( t : number ) => number
20
+ declare type AnimationDefinition = (
21
+ progress : AnimatedValue
22
+ ) => AnimatedViewStyleProp
17
23
18
24
declare export type TabConfig = {
19
25
key : number | string ,
20
26
barColor ?: string ,
21
27
pressColor ?: string
22
28
}
23
29
24
- declare type EasingFunction = ( t : number ) => number
25
-
26
- declare type AnimationDefinition = (
27
- progress : AnimatedValue
28
- ) => AnimatedViewStyleProp
29
-
30
30
declare export type BottomNavigationProps = {
31
31
tabs : Array < TabConfig > ,
32
32
renderTab : ( { isActive : boolean } ) => React$Element < * > ,
You can’t perform that action at this time.
0 commit comments