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

Function AppbarBackIcon

src/components/Appbar/AppbarBackIcon.tsx:6–37  ·  view source on GitHub ↗
({ size, color }: { size: number; color: string })

Source from the content-addressed store, hash-verified

4import MaterialCommunityIcon from '../MaterialCommunityIcon';
5
6const 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
39const styles = StyleSheet.create({
40 wrapper: {

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…