UI & Theming - GrasspIt/GrasspReactNativeDriverApp GitHub Wiki

This project uses react-native-paper, which is a cross-platform Material Design library for React Native. It is used for common UI elements and for theming throughout the app.

The entry point of the app in App.jsx is wrapped in a PaperProvider to pass the theme as props. Individual components access these props through the useTheme hook.

React Navigation has its own theming, which is passed at the entry point in App.jsx through the NavigationContainer.

Read more about how react-native-paper works with react navigation here.