Skip to content

Commit fc603e4

Browse files
committed
use View.propTypes instead of RN ViewPropTypes
1 parent 2c92453 commit fc603e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/view/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import PropTypes from 'prop-types';
22
import React, {PureComponent} from 'react';
3-
import {View as RNView, ViewPropTypes, SafeAreaView, Animated} from 'react-native';
3+
import {View as RNView, SafeAreaView, Animated} from 'react-native';
44
import {asBaseComponent, forwardRef} from '../../commons';
55
import {Constants} from '../../helpers';
66

@@ -14,7 +14,7 @@ class View extends PureComponent {
1414
static displayName = 'View';
1515

1616
static propTypes = {
17-
...ViewPropTypes,
17+
...RNView.propTypes,
1818
// ...BaseComponent.propTypes,
1919
/**
2020
* If true, will render as SafeAreaView

0 commit comments

Comments
 (0)