Skip to content

Commit d16fbfb

Browse files
committed
move textTransformer
1 parent 464c8c2 commit d16fbfb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/HeaderButtons.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
import * as React from 'react';
55
import { HeaderButton, type HeaderButtonProps } from './HeaderButton';
66
import { StyleSheet, Platform, View, Text } from 'react-native';
7-
import { OverflowButton, textTransformer, type OverflowButtonProps } from './OverflowButton';
7+
import { OverflowButton, type OverflowButtonProps } from './OverflowButton';
88
import type { StyleObj } from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
99

10+
const textTransformer = (label: string) =>
11+
IS_IOS ? label.charAt(0).toUpperCase() + label.substr(1) : label.toUpperCase();
12+
1013
type ItemProps = {
1114
title: string,
1215
show: string,

src/OverflowButton.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ import type { StyleObj } from 'react-native/Libraries/StyleSheet/StyleSheetTypes
1515

1616
const IS_IOS = Platform.OS === 'ios';
1717

18-
export const textTransformer = (label: string) =>
19-
IS_IOS ? label.charAt(0).toUpperCase() + label.substr(1) : label.toUpperCase();
20-
2118
export type OverflowButtonProps = {
2219
OverflowIcon?: React.Element<*>,
2320
cancelButtonLabel: string,

0 commit comments

Comments
 (0)