Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit c813e2c

Browse files
committed
Add comment
1 parent cd9e1cf commit c813e2c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

flow-typed/react-native-material-bottom-navigation.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// @flow
22

33
declare module 'react-native-material-bottom-navigation' {
4+
// A few type definitions.
5+
// This is adoped from react-navigation/flow/react-navigation.js
46
declare type StyleObj =
57
| null
68
| void
@@ -14,19 +16,17 @@ declare module 'react-native-material-bottom-navigation' {
1416
declare type AnimatedViewStyleProp = StyleObj
1517
declare type AnimatedTextStyleProp = StyleObj
1618
declare type AnimatedValue = Object
19+
declare type EasingFunction = (t: number) => number
20+
declare type AnimationDefinition = (
21+
progress: AnimatedValue
22+
) => AnimatedViewStyleProp
1723

1824
declare export type TabConfig = {
1925
key: number | string,
2026
barColor?: string,
2127
pressColor?: string
2228
}
2329

24-
declare type EasingFunction = (t: number) => number
25-
26-
declare type AnimationDefinition = (
27-
progress: AnimatedValue
28-
) => AnimatedViewStyleProp
29-
3030
declare export type BottomNavigationProps = {
3131
tabs: Array<TabConfig>,
3232
renderTab: ({ isActive: boolean }) => React$Element<*>,

0 commit comments

Comments
 (0)