question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Theming documentation needs small update

See original GitHub issue

Current 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:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
BenJeaucommented, Aug 14, 2022

Which react-native-paper version do you have installed? For some reasons the docs is for the release candidate of v5 (where MD3LightTheme is a valid exported variable), if you are using v4, take a look at https://callstack.github.io/react-native-paper/4.0

1reaction
lukewalczakcommented, Aug 14, 2022

Hello @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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found