mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Merge pull request #16805 from jeremistadler/master
[React-Navigation] Add TabBarTop & TabBarBottom types
This commit is contained in:
3
types/react-navigation/index.d.ts
vendored
3
types/react-navigation/index.d.ts
vendored
@@ -621,3 +621,6 @@ export interface NavgationComponentProps<T> {
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
export const TabBarTop: React.ReactElement<any>;
|
||||
export const TabBarBottom: React.ReactElement<any>;
|
||||
|
||||
@@ -3,7 +3,10 @@ import { View } from 'react-native';
|
||||
import {
|
||||
addNavigationHelpers,
|
||||
StackNavigator,
|
||||
TabNavigatorScreenOptions
|
||||
TabNavigatorScreenOptions,
|
||||
TabNavigatorConfig,
|
||||
TabBarTop,
|
||||
TabBarBottom,
|
||||
} from 'react-navigation';
|
||||
|
||||
const Start = (
|
||||
@@ -34,5 +37,10 @@ const tabNavigatorScreenOptions: TabNavigatorScreenOptions = {
|
||||
title: 'title',
|
||||
tabBarVisible: true,
|
||||
tabBarIcon: <View />,
|
||||
tabBarLabel: 'label'
|
||||
tabBarLabel: 'label',
|
||||
}
|
||||
|
||||
const tabNavigatorConfig: TabNavigatorConfig = {
|
||||
lazy: true,
|
||||
tabBarComponent: TabBarTop,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user