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

Commit b98bc2e

Browse files
committed
Merge pull request #8 from exoer/master
Updated imports to comply with React Native 0.25 to avoid deprecation warnings
2 parents 3d8c1b6 + 9d9a5f7 commit b98bc2e

File tree

6 files changed

+16
-15
lines changed

6 files changed

+16
-15
lines changed

components/NavButton.js

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

66
function NavButton({ style, onPress, children, disabled, disabledStyle }: Object): React.Element {
77
let navButtonStyles = []

components/NavButtonText.js

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

66
function NavButtonText({ style, children }: Object): React.Element {
77
return (

components/NavGroup.js

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

66
function NavGroup({ style, children }: Object): React.Element {

components/NavTitle.js

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

66
function NavTitle({ style, children }: Object): React.Element {

components/StatusBarEnhanced.js

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

66
function StatusBarEnhanced({ statusBar, style }: Object): React.Element {

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/* @flow */
2-
import React from 'react-native'
3-
const {
2+
import React from 'react'
3+
4+
import {
45
View,
56
PropTypes,
67
Platform,
7-
} = React
8+
} from 'react-native';
89
import { StatusBarEnhanced } from './components/StatusBarEnhanced'
910
export { NavGroup } from './components/NavGroup'
1011
export { NavButton } from './components/NavButton'

0 commit comments

Comments
 (0)