From 5a6524169121672eaeeab35cb997ec6d4c4e8ef8 Mon Sep 17 00:00:00 2001 From: Grzegorz Gawrysiak Date: Sat, 26 May 2018 01:58:39 +0200 Subject: [PATCH] fix: use paper's typography for drawer (#387) --- src/components/DrawerItem.js | 3 ++- src/components/DrawerSection.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/DrawerItem.js b/src/components/DrawerItem.js index c69c94e..9fb28de 100644 --- a/src/components/DrawerItem.js +++ b/src/components/DrawerItem.js @@ -2,11 +2,12 @@ import color from 'color'; import * as React from 'react'; -import { View, Text, StyleSheet } from 'react-native'; +import { View, StyleSheet } from 'react-native'; import Icon from './Icon'; import TouchableRipple from './TouchableRipple'; import { grey300, grey700 } from '../styles/colors'; import withTheme from '../core/withTheme'; +import Text from './Typography/Text'; import type { Theme } from '../types'; import type { IconSource } from './Icon'; diff --git a/src/components/DrawerSection.js b/src/components/DrawerSection.js index 6191b1e..e40cfd4 100644 --- a/src/components/DrawerSection.js +++ b/src/components/DrawerSection.js @@ -2,9 +2,10 @@ import color from 'color'; import * as React from 'react'; -import { View, Text } from 'react-native'; +import { View } from 'react-native'; import Divider from './Divider'; import withTheme from '../core/withTheme'; +import Text from './Typography/Text'; import type { Theme } from '../types'; type Props = {