Closed adamchenwei closed 1 year ago
I fixed it by adding the missing style. I thought it should already exist lol
import { Appbar, Provider as PaperProvider, MD3LightTheme as DefaultTheme, } from 'react-native-paper';
const theme = {
...DefaultTheme,
fonts: {
...DefaultTheme.fonts,
// NOTE : Here is added style!
medium: 'Ubuntu Bold',
},
roundness: 2,
version: 3,
colors: {
...DefaultTheme.colors,
primary: '#3498db',
secondary: '#f1c40f',
tertiary: '#a1b2c3'
},
};
@adamchenwei This library is not yet compatible with react-native-paper 5.0.0+
which allows you to specify version: 3
as opposed to version: 2
which is what this library currently works with. Support may come when the paper team officially gets off release candidates and publishes a stable release.
This is fixed!
I am trying to get the demo code working in my app but I kept encounter this issue of
TypeError: undefined is not an object (evaluating 'theme.fonts.medium')
even I used paper theme provider What did I do wrong?DatePickerMU.js
App.js
Also attacked screenshot.