Theming documentation needs small update
See original GitHub issueCurrent behaviour
Importing MD3LightTheme
as suggested in the documentation throws an error that the module is undefined. It appears the package has been updated and it is now imported just as DefaultTheme
without an alias.
Expected behaviour
Importing the theme allows for overriding the defaults after passing it as a prop to the Provider.
Code sample
import { MD3LightTheme, Provider as PaperProvider } from 'react-native-paper';
throws error
import { DefaultTheme, Provider as PaperProvider } from 'react-native-paper';
worka
Issue Analytics
- State:
- Created a year ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Update Your Theme | Weebly Cloud Developer Documentation
You update a theme in the same way as customizing an existing theme, and your changes can be as small as changing the...
Read more >Theming - Material UI - MUI
Theming. Customize MUI with your theme. You can change the colors, the typography and much more. The theme specifies the color of the...
Read more >Update the theming documentation for providing fonts, sizing ...
Update the documentation to document how you override fonts, colors and sizing. Scenarios that have been asked for: CommandBar: font size too small...
Read more >How To Update a WordPress Theme - Kinsta®
Updating your theme in WordPress is made very simple for you. Just go to Dashboard > Updates and select your theme, then click...
Read more >Defining a theme with an .info.yml file - Drupal
To create a Drupal 8 or later theme you need to first create a THEMENAME.info.yml file that provides meta-data about your theme to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Which
react-native-paper
version do you have installed? For some reasons the docs is for the release candidate of v5 (whereMD3LightTheme
is a valid exported variable), if you are using v4, take a look at https://callstack.github.io/react-native-paper/4.0Hello @matthewlese, as @BenJeau mentioned, the default documentation is for the v5 RC, if you are looking for the documentation related to the latest stable paper version v4, please check the link mentioned above.