Files
devhub/@types/react-navigation-tabs/MaterialTopTabBar.ts
Bruno Lemos 0d509399e2 Use react-navigation-tabs
Fix deprecation warning

Fix types
2018-10-02 00:13:46 -03:00

40 lines
1023 B
TypeScript

declare module 'react-navigation-tabs/src/views/MaterialTopTabBar' {
import React from 'react'
import { Animated } from 'react-native'
export interface TabBarOptions {
activeTintColor?: string
inactiveTintColor?: string
showLabel?: boolean
showIcon?: boolean
upperCaseLabel?: boolean
labelStyle?: any
iconStyle?: any
allowFontScaling?: boolean
}
interface MaterialTopTabBarProps extends TabBarOptions {
position: Animated.Value
offsetX: Animated.Value
panX: Animated.Value
layout: any
navigation: any
renderIcon: (
props: {
route: any
focused: boolean
tintColor: string
},
) => React.ReactNode
getLabelText: (props: { route: any }) => any
getAccessibilityLabel: (props: { route: any }) => string
getTestID: (props: { route: any }) => string
useNativeDriver?: boolean
jumpTo: (key: string) => any
}
export class MaterialTopTabBar extends React.Component<
MaterialTopTabBarProps
> {}
}