@@ -2,8 +2,7 @@ import React from 'react';
22import {
33 View ,
44 TouchableOpacity ,
5- ViewPropTypes ,
6- TextPropTypes ,
5+ Text as RNText ,
76 StyleSheet ,
87} from 'react-native' ;
98import PropTypes from 'prop-types' ;
@@ -38,7 +37,7 @@ Button.propTypes = {
3837 onPress : PropTypes . func . isRequired ,
3938 disabled : PropTypes . bool ,
4039 children : PropTypes . node ,
41- style : ViewPropTypes . style ,
40+ style : View . propTypes . style ,
4241} ;
4342
4443//
@@ -58,7 +57,7 @@ export const ButtonText = ({ children, style }) => (
5857
5958ButtonText . propTypes = {
6059 children : PropTypes . string . isRequired ,
61- style : TextPropTypes . style ,
60+ style : RNText . propTypes . style ,
6261} ;
6362
6463//
@@ -98,7 +97,7 @@ GlasButton.propTypes = {
9897 onPress : PropTypes . func . isRequired ,
9998 disabled : PropTypes . bool ,
10099 children : PropTypes . string . isRequired ,
101- style : ViewPropTypes . style ,
100+ style : View . propTypes . style ,
102101} ;
103102
104103//
@@ -134,7 +133,7 @@ PillButton.propTypes = {
134133 onPress : PropTypes . func . isRequired ,
135134 disabled : PropTypes . bool ,
136135 children : PropTypes . string . isRequired ,
137- style : ViewPropTypes . style ,
136+ style : View . propTypes . style ,
138137} ;
139138
140139//
@@ -209,7 +208,7 @@ SmallButton.propTypes = {
209208 border : PropTypes . bool ,
210209 alert : PropTypes . string ,
211210 children : PropTypes . node ,
212- style : ViewPropTypes . style ,
211+ style : View . propTypes . style ,
213212} ;
214213
215214//
@@ -255,7 +254,7 @@ SmallPillButton.propTypes = {
255254 text : PropTypes . string ,
256255 onPress : PropTypes . func . isRequired ,
257256 disabled : PropTypes . bool ,
258- style : ViewPropTypes . style ,
257+ style : View . propTypes . style ,
259258} ;
260259
261260//
@@ -278,7 +277,7 @@ export const BackButton = ({ onPress, disabled, style }) => (
278277BackButton . propTypes = {
279278 onPress : PropTypes . func ,
280279 disabled : PropTypes . bool ,
281- style : ViewPropTypes . style ,
280+ style : View . propTypes . style ,
282281} ;
283282
284283//
@@ -301,7 +300,7 @@ export const CancelButton = ({ onPress, disabled, style }) => (
301300CancelButton . propTypes = {
302301 onPress : PropTypes . func ,
303302 disabled : PropTypes . bool ,
304- style : ViewPropTypes . style ,
303+ style : View . propTypes . style ,
305304} ;
306305
307306//
@@ -339,7 +338,7 @@ export const QrButton = ({ onPress, disabled, style, children }) => (
339338QrButton . propTypes = {
340339 onPress : PropTypes . func . isRequired ,
341340 disabled : PropTypes . bool ,
342- style : ViewPropTypes . style ,
341+ style : View . propTypes . style ,
343342 children : PropTypes . string ,
344343} ;
345344
@@ -368,7 +367,7 @@ export const DownButton = ({ onPress, disabled, style, children }) => (
368367DownButton . propTypes = {
369368 onPress : PropTypes . func ,
370369 disabled : PropTypes . bool ,
371- style : ViewPropTypes . style ,
370+ style : View . propTypes . style ,
372371 children : PropTypes . string ,
373372} ;
374373
@@ -419,7 +418,7 @@ CopyButton.propTypes = {
419418 onPress : PropTypes . func ,
420419 icon : PropTypes . string ,
421420 children : PropTypes . string ,
422- style : ViewPropTypes . style ,
421+ style : View . propTypes . style ,
423422} ;
424423
425424//
0 commit comments