react-native-paper
react-native-paper copied to clipboard
refactor: remove mode from theme
Changes
The main purpose of this PR is removing the concept of theme modes (adaptive and exact) that were previously used to control how dark theme was applied. This simplifies the theming system by removing this additional layer of complexity, making the dark theme behavior more straightforward and consistent.
- Documentation Changes:
- Removed documentation about dark theme modes (adaptive and exact) from the theming guide
- Removed references to dark theme mode in component documentation
- Theme Changes:
- Removed mode: 'adaptive' from theme
- Removed mode-related theme overrides from example components
- Card Component:
- Removed dark adaptive mode logic and animations
- Simplified elevation animation to use a single animated value
The mobile version of example app from this branch is ready! You can see it here.
Hey @lukewalczak, thank you for your pull request 🤗. The documentation from this branch can be viewed here.