forked from zulip/zulip-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deps: Upgrade @react-navigation/bottom-tabs to 6.5.20 (latest 6.x)
This unfortunately adds two more peer-dep warnings to the one that appeared when we upgraded @react-navigation/material-top-tabs, earlier in this series. Here are all three together: warning " > @react-navigation/bottom-tabs@6.5.20" has incorrect peer dependency "@react-navigation/native@^6.0.0". warning "@react-navigation/bottom-tabs > @react-navigation/elements@1.3.30" has incorrect peer dependency "@react-navigation/native@^6.0.0". warning " > @react-navigation/material-top-tabs@6.6.13" has incorrect peer dependency "@react-navigation/native@^6.0.0". But again, no issues have appeared in manual testing; see note in that earlier commit. Changelog: https://github.com/react-navigation/react-navigation/blob/main/packages/bottom-tabs/CHANGELOG.md For why it's OK to abandon our own custom version of this dependency, see the commit where we started using it: c0b17bd > So this fix will become unnecessary when we're on React > Navigation 6 Done by reading and following the relevant parts of the React Nav upgrade guide, including general information at the top and also the section specific to Bottom Tabs: https://reactnavigation.org/docs/upgrading-from-5.x#bottom-tab-navigator Done with the hope that it wouldn't take too much effort to get to the finish line of the React Nav v6 upgrade, zulip#4936. But when I tried upgrading @react-navigation/stack and @react-navigation/native, I had a lot of trouble working out the right Flow types and TsFlower patches, and this is a legacy codebase. But this part was doable. Fixes-partly: zulip#4936
- Loading branch information
1 parent
81192fa
commit e4c6c92
Showing
46 changed files
with
847 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 27 additions & 1 deletion
28
...act-navigation/bottom-tabs/lib/typescript/src/navigators/createBottomTabNavigator.js.flow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,31 @@ | ||
/* @flow | ||
* @generated by TsFlower | ||
*/ | ||
declare var _default: any; | ||
import type { TypedNavigator as $tsflower_import_type$_$_40_react_2d_navigation_2f_native$TypedNavigator } from '@react-navigation/native'; | ||
import type { JSX$Element as $tsflower_subst$React$JSX$Element } from 'tsflower/subst/react'; | ||
|
||
import { | ||
type DefaultNavigatorOptions, | ||
type ParamListBase, | ||
type TabNavigationState, | ||
type TabRouterOptions, | ||
} from '@react-navigation/native'; | ||
|
||
import { | ||
type BottomTabNavigationConfig, | ||
type BottomTabNavigationEventMap, | ||
type BottomTabNavigationOptions, | ||
} from '../types'; | ||
|
||
type Props = TabRouterOptions & BottomTabNavigationConfig; | ||
declare function BottomTabNavigator(Props): $tsflower_subst$React$JSX$Element; | ||
declare var _default: < | ||
ParamList: ParamListBase, | ||
>() => $tsflower_import_type$_$_40_react_2d_navigation_2f_native$TypedNavigator< | ||
ParamList, | ||
TabNavigationState<ParamListBase>, | ||
BottomTabNavigationOptions, | ||
BottomTabNavigationEventMap, | ||
typeof BottomTabNavigator, | ||
>; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
types/@react-navigation/bottom-tabs/lib/typescript/src/utils/useBottomTabBarHeight.js.flow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* @flow | ||
* @generated by TsFlower | ||
*/ | ||
declare export default function useFloatingBottomTabBarHeight(): number; | ||
declare export default function useBottomTabBarHeight(): number; |
8 changes: 0 additions & 8 deletions
8
types/@react-navigation/bottom-tabs/lib/typescript/src/utils/useWindowDimensions.js.flow
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.