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

View File

@@ -3,7 +3,7 @@ import React, {
PropTypes
} from 'react';
import {
View,
ViewPropTypes,
requireNativeComponent,
StyleSheet,
findNodeHandle,
@@ -26,7 +26,7 @@ const styles = StyleSheet.create({
class Svg extends Component{
static displayName = 'Svg';
static propTypes = {
...View.propTypes,
...ViewPropTypes,
opacity: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),