{"repo":"pchmn/expo-material3-theme","free":true,"listed":false,"github":"https://github.com/pchmn/expo-material3-theme","clone":"git clone https://github.com/pchmn/expo-material3-theme.git","description":"Manage Material 3 theme in your React Native App","language":"TypeScript","stars":132,"topics":["android","ios","react-native","expo"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Expo Material 3 Theme This expo module allows you retrieve the Material 3 dynamic theme from Android 12+ devices, so that you can use it in your expo (or bare react-native) app. For devices not compatible (iOS or older Android versions) a fallback theme is returned. ✨ Features - Retrieve Material 3 dynamic theme from Android 12+ devices (or a fallback theme if device is not compatible) - Generate Material 3 theme based on a source color (using @material/material-color-utilities ) - Material 3 theme compatible with react-native-paper Installation Installation in managed Expo projects This library works with Expo Go, but you won't be able to retrieve the system theme (you'll get a fallback theme) because it requires custom native code and Expo Go doesn't support it If you use development build, you'll have to rebuild development client (only android) after adding the library because it contains native code (https://docs.expo.dev/develop/development-builds/use-development-builds/#rebuild-a-development-build) : Installation in bare React Native projects For bare React Native projects, you must ensure that you have installed and configured the expo package before continuing. Usage Retrieve system theme A basic usage would be to retrieve the Material 3 theme from user device (or a fallback theme if not supported) by using useMaterial3Theme hook: Use a custom theme If you want to use a theme based on a specific color instead of the system theme, just pass the sourceColor param to us","default_branch":null,"files":null,"tree":[],"storefront":"/r/pchmn","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pchmn/expo-material3-theme/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}