Skip to content

Commit

Permalink
fix: replaces View.propTypes with ViewPropTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
dickie81 committed Oct 31, 2017
1 parent 9afae6a commit 205e02f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/ad/placeholder.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { StyleSheet, View, Text, Platform } from "react-native";
import { StyleSheet, View, Text, Platform, ViewPropTypes } from "react-native";
import PropTypes from "prop-types";

import TimesWatermark from "./ad-watermark";
Expand Down Expand Up @@ -57,7 +57,7 @@ const Placeholder = ({ width, height, style }) => {
Placeholder.propTypes = {
width: PropTypes.number.isRequired,
height: PropTypes.number.isRequired,
style: View.propTypes.style
style: ViewPropTypes.style
};

Placeholder.defaultProps = {
Expand Down
4 changes: 2 additions & 2 deletions packages/article-byline/article-byline-proptypes.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import PropTypes from "prop-types";
import { Text, View } from "react-native";
import { Text, ViewPropTypes } from "react-native";
import { treePropType } from "@times-components/markup";

export const articleBylinePropTypes = {
ast: PropTypes.arrayOf(treePropType).isRequired,
style: PropTypes.shape({
container: View.propTypes.style,
container: ViewPropTypes.style,
byline: Text.propTypes.style,
link: Text.propTypes.style
})
Expand Down
4 changes: 2 additions & 2 deletions packages/image/image-prop-types.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import PropTypes from "prop-types";
import { View } from "react-native";
import { ViewPropTypes } from "react-native";

const propTypes = {
uri: PropTypes.string.isRequired,
aspectRatio: PropTypes.number.isRequired,
style: View.propTypes.style
style: ViewPropTypes.style
};

export default propTypes;

0 comments on commit 205e02f

Please sign in to comment.