Skip to content

Commit

Permalink
fix: Use ViewPropTypes instead of View.propTypes when available (awsl…
Browse files Browse the repository at this point in the history
  • Loading branch information
mohebifar authored and manueliglesias committed Apr 5, 2018
1 parent 609eb2c commit 421b5d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/aws-appsync-react/src/rehydrated-rn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* KIND, express or implied. See the License for the specific language governing permissions and limitations under the License.
*/
import * as React from "react";
import { View, Text, StyleSheet, NetInfo } from "react-native";
import { View, Text, StyleSheet, NetInfo, ViewPropTypes } from "react-native";
import * as PropTypes from 'prop-types';

import AWSAppSyncClient from 'aws-appsync';
Expand Down Expand Up @@ -51,7 +51,7 @@ export default class Rehydrated extends React.Component<RehydratedProps, Rehydra
render: PropTypes.func,
children: PropTypes.node,
loading: PropTypes.node,
style: View.propTypes.style,
style: ViewPropTypes ? ViewPropTypes.style : View.propTypes.style,
};

constructor(props, context) {
Expand Down

0 comments on commit 421b5d3

Please sign in to comment.