MCPcopy Create free account
hub / github.com/callstack/react-native-paper / ThemeExample

Function ThemeExample

example/src/Examples/ThemeExample.tsx:13–33  ·  view source on GitHub ↗
({ navigation }: Props)

Source from the content-addressed store, hash-verified

11};
12
13const ThemeExample = ({ navigation }: Props) => {
14 return (
15 <PaperProvider>
16 <ScreenWrapper contentContainerStyle={styles.container}>
17 <Banner visible>
18 React Native Paper automatically adapts theme based on system
19 preferences. Please change system theme to dark/light to see the
20 effect
21 </Banner>
22 <List.Section title={`Theme based on the source color`}>
23 <List.Item
24 title="Themed Sport App"
25 description="Go to the example"
26 onPress={() => navigation.navigate('teamsList')}
27 right={(props) => <List.Icon {...props} icon="arrow-right" />}
28 />
29 </List.Section>
30 </ScreenWrapper>
31 </PaperProvider>
32 );
33};
34ThemeExample.title = 'Theme';
35
36const styles = StyleSheet.create({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…