-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variant labelLarge was not provided properly. Valid variants are regular, medium, bold, heavy. #4573
Comments
Had to roll back |
My quick guess is that you're using a the Example:
Hope this is the same issue you're facing and this fixes your issue :) |
import {
DarkTheme as NavigationDarkTheme,
DefaultTheme as NavigationDefaultTheme,
} from '@react-navigation/native'; This is my current import. |
Same import and same bug, I rolled back |
I also have this bug and got around it by adding the react-native-paper text variants (e.g., labelMedium, labelLarge) explicitly to a 'fonts' property in my theme object. I think this becomes important when using v7 react-navigation because of the discussion in the upgrade docs. So, for example, a work around could be to have your theme as:
|
I ended up just making another file with all the react-native-paper defaults.
Then I spread those into the 'fonts' property of the theme like so:
|
Remove the fonts attribute from the paper provider. PaperProvider does not accept font attribute.
|
Current behaviour
Expected behaviour
How to reproduce?
Preview
<!-
plicable. -->
What have you tried so far?
Your Environment
The text was updated successfully, but these errors were encountered: