-
Notifications
You must be signed in to change notification settings - Fork 37
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
Theming #33
Comments
Hi Widiana, You have to wrap your app in the Provider component: import { Provider, defaultTheme } from "@react-native-material/core";
const App = () => (
<Provider
theme={{
// extend the default theme
...defaultTheme,
palette: {
...defaultTheme.palette,
// override the primary color
primary: { main: "red", on: "white" },
},
}}
>
...
</Provider>
);
export default App;
|
@yamankatby , could you please explain what is the meaning of |
Hi @Pika-Pool, The Simply the |
I'm having the same issue when using typescript as the base of the application when it comes to wrapping my entire app with (As in I see the same error message as @Drealler here). However while I am able to change the color of the appbar, I don't think there is a way of easily changing the background color of list items, manually or otherwise.
![1662482504010](https://user-images.githubusercontent.com/76730458/188693886-3ed04ce5-e333-416a-9493-6aa1bcc0d3ac.JPEG =250x250) |
Capability to set the theme for the whole application
The text was updated successfully, but these errors were encountered: