({ navigation }: Props)
| 11 | }; |
| 12 | |
| 13 | const 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 | }; |
| 34 | ThemeExample.title = 'Theme'; |
| 35 | |
| 36 | const styles = StyleSheet.create({ |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…