mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
Merge pull request #3215 from frewsxcv/index
Migrate `src/navigation/BottomTabNavigator/index` to TypeScript.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
|
||||
import { BottomTabBarProps, createBottomTabNavigator } from "@react-navigation/bottom-tabs";
|
||||
import Mortal from "components/SharedComponents/Mortal";
|
||||
import TabStackNavigator, {
|
||||
SCREEN_NAME_NOTIFICATIONS,
|
||||
@@ -14,7 +14,7 @@ const Tab = createBottomTabNavigator( );
|
||||
/* eslint-disable react/jsx-props-no-spreading */
|
||||
|
||||
const BottomTabs = ( ) => {
|
||||
const renderTabBar = props => <CustomTabBarContainer {...props} />;
|
||||
const renderTabBar = ( props: BottomTabBarProps ) => <CustomTabBarContainer {...props} />;
|
||||
|
||||
// DEVELOPERS: do you need to add any screens here? All the rest of our screens live in
|
||||
// NoBottomTabStackNavigator, TabStackNavigator, or LoginStackNavigator
|
||||
Reference in New Issue
Block a user