Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
timomeh committed Mar 25, 2018
1 parent cd9e1cf commit c813e2c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions flow-typed/react-native-material-bottom-navigation.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// @flow

declare module 'react-native-material-bottom-navigation' {
// A few type definitions.
// This is adoped from react-navigation/flow/react-navigation.js
declare type StyleObj =
| null
| void
Expand All @@ -14,19 +16,17 @@ declare module 'react-native-material-bottom-navigation' {
declare type AnimatedViewStyleProp = StyleObj
declare type AnimatedTextStyleProp = StyleObj
declare type AnimatedValue = Object
declare type EasingFunction = (t: number) => number
declare type AnimationDefinition = (
progress: AnimatedValue
) => AnimatedViewStyleProp

declare export type TabConfig = {
key: number | string,
barColor?: string,
pressColor?: string
}

declare type EasingFunction = (t: number) => number

declare type AnimationDefinition = (
progress: AnimatedValue
) => AnimatedViewStyleProp

declare export type BottomNavigationProps = {
tabs: Array<TabConfig>,
renderTab: ({ isActive: boolean }) => React$Element<*>,
Expand Down

0 comments on commit c813e2c

Please sign in to comment.