()
| 7 | import ScreenWrapper from '../ScreenWrapper'; |
| 8 | |
| 9 | const ButtonExample = () => { |
| 10 | const { isV3 } = useExampleTheme(); |
| 11 | if (!isV3) { |
| 12 | return ( |
| 13 | <ScreenWrapper contentContainerStyle={styles.v2Container}> |
| 14 | <IconButton icon="camera" size={24} onPress={() => {}} /> |
| 15 | <IconButton |
| 16 | icon="lock" |
| 17 | size={24} |
| 18 | iconColor={MD2Colors.green500} |
| 19 | onPress={() => {}} |
| 20 | /> |
| 21 | <IconButton icon="" size={24} onPress={() => {}} loading /> |
| 22 | <IconButton icon="camera" size={36} onPress={() => {}} /> |
| 23 | <IconButton |
| 24 | icon="lock" |
| 25 | size={36} |
| 26 | onPress={() => {}} |
| 27 | style={{ backgroundColor: MD2Colors.lightGreen200 }} |
| 28 | /> |
| 29 | <IconButton icon="heart" size={60} onPress={() => {}} /> |
| 30 | </ScreenWrapper> |
| 31 | ); |
| 32 | } |
| 33 | |
| 34 | return ( |
| 35 | <ScreenWrapper contentContainerStyle={styles.v3Container}> |
| 36 | <List.Section title="Default"> |
| 37 | <View style={styles.row}> |
| 38 | <IconButton icon="camera" size={24} onPress={() => {}} /> |
| 39 | <IconButton icon="camera" selected size={24} onPress={() => {}} /> |
| 40 | <IconButton icon="camera" disabled size={24} onPress={() => {}} /> |
| 41 | <IconButton icon="camera" size={24} onPress={() => {}} loading /> |
| 42 | </View> |
| 43 | </List.Section> |
| 44 | |
| 45 | <List.Section title="Contained"> |
| 46 | <View style={styles.row}> |
| 47 | <IconButton |
| 48 | icon="camera" |
| 49 | mode="contained" |
| 50 | size={24} |
| 51 | onPress={() => {}} |
| 52 | /> |
| 53 | <IconButton |
| 54 | icon="camera" |
| 55 | mode="contained" |
| 56 | selected |
| 57 | size={24} |
| 58 | onPress={() => {}} |
| 59 | /> |
| 60 | <IconButton |
| 61 | icon="camera" |
| 62 | mode="contained" |
| 63 | disabled |
| 64 | size={24} |
| 65 | onPress={() => {}} |
| 66 | /> |
nothing calls this directly
no test coverage detected
searching dependent graphs…