Skip to content

feat(v6): remove deprecated public API#4926

Open
adrcotfas wants to merge 1 commit into
@adrcotfas/refactor/color_valuefrom
@adrcotfas/refactor/remove_deprecation
Open

feat(v6): remove deprecated public API#4926
adrcotfas wants to merge 1 commit into
@adrcotfas/refactor/color_valuefrom
@adrcotfas/refactor/remove_deprecation

Conversation

@adrcotfas
Copy link
Copy Markdown
Collaborator

@adrcotfas adrcotfas commented May 8, 2026

Motivation

  • Delete src/deprecated.ts and all MD3*/DefaultTheme/useAppTheme re-exports
  • Remove createMaterialBottomTabNavigator and entire src/react-navigation/ directory
  • Remove theme.mode field from Theme type and DarkTheme definition
  • Remove ThemeBase type
  • Remove deprecated component props: FAB.small, Button.color, BottomNavigation BaseRoute.color
  • Remove Card adaptive dark mode logic (tonal surfaces handle dark theme in MD3)
  • Update example app and docs to use canonical names (Palette, LightTheme, DarkTheme)
  • Rename internal useAppTheme to _useTheme to avoid confusion with removed public symbol

Related issue

See https://www.notion.so/callstack/React-Native-Paper-Foundation-for-MD3-Expressive-34c5d027c0f880edba3df107cd35946f?source=copy_link

Merge order:

Test plan

  • yarn typescript -- no new type errors
  • yarn test -- all tests pass

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

The mobile version of example app from this branch is ready! You can see it here.

@callstack-bot
Copy link
Copy Markdown

callstack-bot commented May 12, 2026

Hey @adrcotfas, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

Comment thread src/theme/provider.tsx Outdated
Comment thread src/components/Card/Card.tsx Outdated
Comment thread example/src/hooks/useExampleTheme.ts Outdated
Comment thread docs/docs/guides/09-bottom-navigation.md Outdated
Comment thread docs/docs/guides/09-bottom-navigation.md Outdated
Comment thread docs/docs/guides/09-bottom-navigation.md Outdated
Comment thread docs/docs/guides/09-bottom-navigation.md
Comment thread docs/docs/guides/09-bottom-navigation.md Outdated
@adrcotfas adrcotfas force-pushed the @adrcotfas/refactor/dynamic_themes branch from d51258f to 91d863b Compare May 14, 2026 10:07
@adrcotfas adrcotfas force-pushed the @adrcotfas/refactor/remove_deprecation branch from cf203b2 to 3743d80 Compare May 14, 2026 11:03
@adrcotfas adrcotfas requested a review from satya164 May 14, 2026 11:05
@adrcotfas adrcotfas changed the base branch from @adrcotfas/refactor/dynamic_themes to @adrcotfas/refactor/color_value May 14, 2026 11:06
@adrcotfas adrcotfas added the v6 label May 14, 2026
@adrcotfas adrcotfas force-pushed the @adrcotfas/refactor/color_value branch from 2218eb6 to cb8fee4 Compare May 14, 2026 13:00
@adrcotfas adrcotfas force-pushed the @adrcotfas/refactor/remove_deprecation branch from 3743d80 to b663a75 Compare May 14, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants