Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/affix/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PropTypes from 'prop-types';
import React, { PureComponent } from 'react';
import { Animated } from 'react-native';
import { Animated, Text } from 'react-native';

import styles from './styles';

Expand All @@ -24,7 +24,7 @@ export default class Affix extends PureComponent {
baseColor: PropTypes.string.isRequired,
animationDuration: PropTypes.number.isRequired,

style: Animated.Text.propTypes.style,
style: Text.propTypes.style,

children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
Expand Down
4 changes: 2 additions & 2 deletions src/components/helper/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import PropTypes from 'prop-types';
import React, { PureComponent } from 'react';
import { View, Animated } from 'react-native';
import { View, Animated, Text } from 'react-native';

import styles from './styles';

export default class Helper extends PureComponent {

static propTypes = {
style: Animated.Text.propTypes.style,
style: Text.propTypes.style,
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node,
Expand Down
4 changes: 2 additions & 2 deletions src/components/label/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PropTypes from 'prop-types';
import React, { PureComponent } from 'react';
import { Animated } from 'react-native';
import { Animated, Text } from 'react-native';

export default class Label extends PureComponent {
static defaultProps = {
Expand Down Expand Up @@ -29,7 +29,7 @@ export default class Label extends PureComponent {

animationDuration: PropTypes.number.isRequired,

style: Animated.Text.propTypes.style,
style: Text.propTypes.style,

children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
Expand Down