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

Commit 9ae4c1b

Browse files
committed
reverted changes and switched to yarn
1 parent a8cbe72 commit 9ae4c1b

File tree

4 files changed

+889
-11
lines changed

4 files changed

+889
-11
lines changed

components/NavButton.js

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

66
function NavButton({ style, onPress, children, disabled, disabledStyle, accessibilityLabel }: Object): React.Element {
77
let navButtonStyles = []
@@ -19,7 +19,7 @@ function NavButton({ style, onPress, children, disabled, disabledStyle, accessib
1919
const getTouchable = (): React.Element => {
2020
if (disabled) {
2121
return (
22-
<TouchableOpacity accessibilityLabel={accessibilityLabel} accessibilityTraits={["button", "disabled"]}>
22+
<TouchableOpacity accessibilityLabel={accessibilityLabel} accessibilityTraits={['button', 'disabled']}>
2323
<View style={navButtonStyles}>
2424
{children}
2525
</View>
@@ -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: ViewPropTypes.style,
44+
style: View.PropTypes.style,
4545
disabled: PropTypes.bool,
46-
disabledStyle: ViewPropTypes.style,
46+
disabledStyle: View.PropTypes.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, ViewPropTypes } from 'react-native';
3+
import { View } 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: ViewPropTypes.style,
15+
style: View.propTypes.style,
1616
children: PropTypes.node,
1717
}
1818

components/StatusBarEnhanced.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* @flow */
2-
import React, { PropTypes } from 'react';
3-
import { Platform, View, ViewPropTypes, StatusBar } from 'react-native';
2+
import React, { PropTypes } from 'react'
3+
import { Platform, View, 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: ViewPropTypes.style,
49+
style: View.propTypes.style,
5050
}
5151

5252
StatusBarEnhanced.defaultProps = {

0 commit comments

Comments
 (0)