Skip to content
This repository was archived by the owner on Nov 12, 2019. It is now read-only.

Commit 4588313

Browse files
authored
Merge pull request #17 from cribspot/view-prop-types
Update deprecated View.propTypes to ViewPropTypes
2 parents 4ed3781 + 76baa81 commit 4588313

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

components/NavButton.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* @flow */
22
import React, { PropTypes } from 'react';
3-
import { Platform, TouchableOpacity, View } from 'react-native';
3+
import { Platform, TouchableOpacity, View, ViewPropTypes } from 'react-native';
44
import styles from '../styles';
55

66
function NavButton({ style, onPress, children, disabled, disabledStyle, accessibilityLabel }: Object): React.Element {
@@ -41,9 +41,9 @@ function NavButton({ style, onPress, children, disabled, disabledStyle, accessib
4141
NavButton.propTypes = {
4242
children: PropTypes.node,
4343
onPress: PropTypes.func,
44-
style: View.propTypes.style,
44+
style: ViewPropTypes.style,
4545
disabled: PropTypes.bool,
46-
disabledStyle: View.propTypes.style,
46+
disabledStyle: ViewPropTypes.style,
4747
}
4848

4949
NavButton.defaultProps = {

components/NavGroup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* @flow */
22
import React, { PropTypes } from 'react'
3-
import { View } from 'react-native';
3+
import { View, ViewPropTypes } from 'react-native';
44
import styles from '../styles'
55

66
function NavGroup({ style, children }: Object): React.Element {
@@ -12,7 +12,7 @@ function NavGroup({ style, children }: Object): React.Element {
1212
}
1313

1414
NavGroup.propTypes = {
15-
style: View.propTypes.style,
15+
style: ViewPropTypes.style,
1616
children: PropTypes.node,
1717
}
1818

components/StatusBarEnhanced.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* @flow */
22
import React, { PropTypes } from 'react';
3-
import { Platform, View, StatusBar } from 'react-native';
3+
import { Platform, View, ViewPropTypes, StatusBar } from 'react-native';
44
import styles from '../styles'
55

66
function StatusBarEnhanced({ statusBar, style }: Object): React.Element {
@@ -46,7 +46,7 @@ function StatusBarEnhanced({ statusBar, style }: Object): React.Element {
4646

4747
StatusBarEnhanced.propTypes = {
4848
statusBar: PropTypes.object,
49-
style: View.propTypes.style,
49+
style: ViewPropTypes.style,
5050
}
5151

5252
StatusBarEnhanced.defaultProps = {

0 commit comments

Comments
 (0)