({ size, color }: { size: number; color: string })
| 4 | import MaterialCommunityIcon from '../MaterialCommunityIcon'; |
| 5 | |
| 6 | const AppbarBackIcon = ({ size, color }: { size: number; color: string }) => { |
| 7 | const iosIconSize = size - 3; |
| 8 | |
| 9 | return Platform.OS === 'ios' ? ( |
| 10 | <View |
| 11 | style={[ |
| 12 | styles.wrapper, |
| 13 | { |
| 14 | width: size, |
| 15 | height: size, |
| 16 | transform: [{ scaleX: I18nManager.getConstants().isRTL ? -1 : 1 }], |
| 17 | }, |
| 18 | ]} |
| 19 | > |
| 20 | <Image |
| 21 | source={require('../../assets/back-chevron.png')} |
| 22 | style={[ |
| 23 | styles.icon, |
| 24 | { tintColor: color, width: iosIconSize, height: iosIconSize }, |
| 25 | ]} |
| 26 | accessibilityIgnoresInvertColors |
| 27 | /> |
| 28 | </View> |
| 29 | ) : ( |
| 30 | <MaterialCommunityIcon |
| 31 | name="arrow-left" |
| 32 | color={color} |
| 33 | size={size} |
| 34 | direction={I18nManager.getConstants().isRTL ? 'rtl' : 'ltr'} |
| 35 | /> |
| 36 | ); |
| 37 | }; |
| 38 | |
| 39 | const styles = StyleSheet.create({ |
| 40 | wrapper: { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…