mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-06 05:03:52 +00:00
Migrate from View.propTypes to ViewPropTypes
According to react native 0.44 changes. (#338 #331)
This commit is contained in:
@@ -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]),
|
||||
|
||||
Reference in New Issue
Block a user