-
-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathindex.js
28 lines (24 loc) · 802 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// @flow
import HeaderButtonsBase from 'react-navigation-header-buttons-base';
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
import Ionicons from 'react-native-vector-icons/Ionicons';
import * as React from 'react';
export default HeaderButtonsBase;
const DefaultOverflowIcon = ({ color }) => (
<MaterialIcons name="more-vert" size={23} color={color} />
);
export const Item = HeaderButtonsBase.Item;
export const MaterialHeaderButtons = props => (
<HeaderButtonsBase
IconComponent={MaterialIcons}
OverflowIcon={<DefaultOverflowIcon color={props.color} />}
{...props}
/>
);
export const IoniconHeaderButtons = props => (
<HeaderButtonsBase
IconComponent={Ionicons}
OverflowIcon={<DefaultOverflowIcon color={props.color} />}
{...props}
/>
);