From d335a4db07e7ad04df2e5f32768b844c898fe6f1 Mon Sep 17 00:00:00 2001 From: orenklein Date: Thu, 18 May 2017 16:28:11 +0300 Subject: [PATCH] Migrate from View.propTypes to ViewPropTypes According to react native 0.44 changes. (#338 #331) --- elements/Svg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elements/Svg.js b/elements/Svg.js index 2cd3560f..d6517622 100644 --- a/elements/Svg.js +++ b/elements/Svg.js @@ -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]),