Skip to content

Commit ccd6a82

Browse files
committed
fix: fixed console warning for Text prop types
1 parent ab5aca1 commit ccd6a82

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ We recommend that you follow two rules when implementing this component.
9898
[MIT](LICENSE) © Nick Baugh
9999

100100

101-
##
101+
##
102102

103103
[npm]: https://www.npmjs.com/
104104

index.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,7 @@
1616

1717
import React from 'react';
1818
import PropTypes from 'prop-types';
19-
import {
20-
ViewPropTypes,
21-
StyleSheet,
22-
View,
23-
Text,
24-
Modal,
25-
ActivityIndicator
26-
} from 'react-native';
19+
import { StyleSheet, View, Text, Modal, ActivityIndicator } from 'react-native';
2720

2821
const transparent = 'transparent';
2922
const styles = StyleSheet.create({
@@ -85,9 +78,9 @@ export default class Spinner extends React.PureComponent {
8578
overlayColor: PropTypes.string,
8679
size: PropTypes.oneOf(SIZES),
8780
textContent: PropTypes.string,
88-
textStyle: Text.propTypes.style,
81+
textStyle: PropTypes.object,
8982
visible: PropTypes.bool,
90-
indicatorStyle: ViewPropTypes.style,
83+
indicatorStyle: PropTypes.object,
9184
customIndicator: PropTypes.element,
9285
children: PropTypes.element
9386
};

0 commit comments

Comments
 (0)