Skip to content

Commit 51422cf

Browse files
committed
dont include modifiiers prop types
1 parent 4461645 commit 51422cf

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/commons/baseComponent.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import * as Modifiers from './modifiers';
99
export default function baseComponent(usePure) {
1010
const parent = usePure ? React.PureComponent : React.Component;
1111
class BaseComponent extends parent {
12-
static propTypes = {
13-
..._.mapValues(Typography, () => PropTypes.bool),
14-
..._.mapValues(Colors, () => PropTypes.bool),
15-
useNativeDriver: PropTypes.bool,
16-
};
12+
// static propTypes = {
13+
// ..._.mapValues(Typography, () => PropTypes.bool),
14+
// ..._.mapValues(Colors, () => PropTypes.bool),
15+
// useNativeDriver: PropTypes.bool,
16+
// };
1717

1818
static extractOwnProps = Modifiers.extractOwnProps;
1919

src/components/inputs/BaseInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default class BaseInput extends BaseComponent {
99
static displayName = 'BaseInput';
1010
static propTypes = {
1111
...RNTextInput.propTypes,
12-
...BaseComponent.propTypes,
12+
// ...BaseComponent.propTypes,
1313
/**
1414
* text color
1515
*/

src/components/text/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default class Text extends PureBaseComponent {
1313
static displayName = 'Text';
1414
static propTypes = {
1515
...RNText.propTypes,
16-
...PureBaseComponent.propTypes,
16+
// ...PureBaseComponent.propTypes,
1717
/**
1818
* color of the text
1919
*/

src/components/view/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class View extends PureComponent {
1515

1616
static propTypes = {
1717
...ViewPropTypes,
18-
...BaseComponent.propTypes,
18+
// ...BaseComponent.propTypes,
1919
/**
2020
* If true, will render as SafeAreaView
2121
*/

0 commit comments

Comments
 (0)