UNPKG

1.15 kBJavaScriptView Raw
1var __rest = (this && this.__rest) || function (s, e) {
2 var t = {};
3 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4 t[p] = s[p];
5 if (s != null && typeof Object.getOwnPropertySymbols === "function")
6 for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8 t[p[i]] = s[p[i]];
9 }
10 return t;
11};
12import React from 'react';
13import { StyleSheet, Platform } from 'react-native';
14import { withTheme } from '../config';
15import Icon from '../icons/Icon';
16const ListItemChevron = (_a) => {
17 var { containerStyle } = _a, props = __rest(_a, ["containerStyle"]);
18 return (<Icon type={Platform.OS === 'ios' ? 'ionicon' : 'material'} color="#D1D1D6" name={Platform.OS === 'ios'
19 ? 'chevron-forward-outline'
20 : 'keyboard-arrow-right'} size={16} containerStyle={StyleSheet.flatten([
21 { alignSelf: 'center' },
22 containerStyle,
23 ])} {...props}/>);
24};
25export default withTheme(ListItemChevron, 'ListItemChevron');
26
\No newline at end of file