11import React from 'react' ;
2- import { Text as RNText , TextPropTypes , StyleSheet } from 'react-native' ;
2+ import { Text as RNText , StyleSheet } from 'react-native' ;
33import PropTypes from 'prop-types' ;
44import { color , font } from './style' ;
55import './font' ;
@@ -26,7 +26,7 @@ export const Text = ({ children, style, ...props }) => (
2626
2727Text . propTypes = {
2828 children : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . array ] ) ,
29- style : TextPropTypes . style ,
29+ style : RNText . propTypes . style ,
3030} ;
3131
3232//
@@ -47,7 +47,7 @@ export const CopyText = ({ children, style }) => (
4747
4848CopyText . propTypes = {
4949 children : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . array ] ) ,
50- style : TextPropTypes . style ,
50+ style : RNText . propTypes . style ,
5151} ;
5252
5353//
@@ -68,7 +68,7 @@ export const CopyOnboardText = ({ children = '', style }) => (
6868
6969CopyOnboardText . propTypes = {
7070 children : PropTypes . string . isRequired ,
71- style : TextPropTypes . style ,
71+ style : RNText . propTypes . style ,
7272} ;
7373
7474//
@@ -89,7 +89,7 @@ export const H1Text = ({ children = '', style }) => (
8989
9090H1Text . propTypes = {
9191 children : PropTypes . string . isRequired ,
92- style : TextPropTypes . style ,
92+ style : RNText . propTypes . style ,
9393} ;
9494
9595//
@@ -110,7 +110,7 @@ export const H3Text = ({ children = '', style }) => (
110110
111111H3Text . propTypes = {
112112 children : PropTypes . string . isRequired ,
113- style : TextPropTypes . style ,
113+ style : RNText . propTypes . style ,
114114} ;
115115
116116//
@@ -131,7 +131,7 @@ export const H4Text = ({ children, style }) => (
131131
132132H4Text . propTypes = {
133133 children : PropTypes . string . isRequired ,
134- style : TextPropTypes . style ,
134+ style : RNText . propTypes . style ,
135135} ;
136136
137137export default Text ;
0 commit comments