Migrate from View.propTypes to ViewPropTypes

According to react native 0.44 changes. 
(#338 #331)
This commit is contained in:
orenklein
2017-05-18 16:28:11 +03:00
committed by GitHub
parent c2c96e1431
commit d335a4db07
+2 -2
View File
@@ -3,7 +3,7 @@ import React, {
PropTypes PropTypes
} from 'react'; } from 'react';
import { import {
View, ViewPropTypes,
requireNativeComponent, requireNativeComponent,
StyleSheet, StyleSheet,
findNodeHandle, findNodeHandle,
@@ -26,7 +26,7 @@ const styles = StyleSheet.create({
class Svg extends Component{ class Svg extends Component{
static displayName = 'Svg'; static displayName = 'Svg';
static propTypes = { static propTypes = {
...View.propTypes, ...ViewPropTypes,
opacity: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), opacity: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),