diff --git a/lib/Button.js b/lib/Button.js
index 2d98567..af93a35 100644
--- a/lib/Button.js
+++ b/lib/Button.js
@@ -68,7 +68,7 @@ export default class Button extends Component {
}
};
- const buttonStyleMap = {
+ const buttonStyleMap = {
raised: {
light: {
normal: {
diff --git a/lib/Card/Actions.js b/lib/Card/Actions.js
index 997a527..d54f0ed 100644
--- a/lib/Card/Actions.js
+++ b/lib/Card/Actions.js
@@ -1,4 +1,4 @@
-import React, { Component, StyleSheet, PropTypes, Image, View, Animated } from 'react-native';
+import React, { Component, StyleSheet, PropTypes, View } from 'react-native';
export default class Actions extends Component {
diff --git a/lib/Card/Body.js b/lib/Card/Body.js
index 6575682..aba9d4b 100644
--- a/lib/Card/Body.js
+++ b/lib/Card/Body.js
@@ -1,4 +1,4 @@
-import React, { Component, StyleSheet, PropTypes, Image, View, Animated } from 'react-native';
+import React, { Component, StyleSheet, PropTypes, View } from 'react-native';
import { COLOR } from '../config';
diff --git a/lib/Card/Media.js b/lib/Card/Media.js
index 713036d..aeca30a 100644
--- a/lib/Card/Media.js
+++ b/lib/Card/Media.js
@@ -4,7 +4,7 @@ import React, { Component, StyleSheet, PropTypes, Image, View } from 'react-nati
export default class Media extends Component {
static propTypes = {
- image: PropTypes.shape({type: PropTypes.oneOf([Image])}).isRequired,
+ image: PropTypes.shape({ type: PropTypes.oneOf([Image]) }).isRequired,
height: PropTypes.number,
overlay: PropTypes.bool,
children: PropTypes.node
@@ -23,7 +23,7 @@ export default class Media extends Component {
{React.cloneElement(image, {
style: [styles.media, { height }]
})}
- { children &&
+ {children &&
{children}
diff --git a/lib/Drawer/Header.js b/lib/Drawer/Header.js
index ecc797a..bef9b43 100644
--- a/lib/Drawer/Header.js
+++ b/lib/Drawer/Header.js
@@ -1,10 +1,9 @@
import React, { Component, PropTypes, View, Image } from 'react-native';
-import { getColor } from '../helpers';
export default class Header extends Component {
static propTypes = {
- image: PropTypes.shape({type: PropTypes.oneOf([Image])}),
+ image: PropTypes.shape({ type: PropTypes.oneOf([Image]) }),
backgroundColor: PropTypes.string,
height: PropTypes.number,
children: PropTypes.node
@@ -36,4 +35,4 @@ const styles = {
header: {
paddingHorizontal: 16
}
-}
\ No newline at end of file
+};
\ No newline at end of file
diff --git a/lib/Drawer/Item.js b/lib/Drawer/Item.js
index c839578..80ea7de 100644
--- a/lib/Drawer/Item.js
+++ b/lib/Drawer/Item.js
@@ -1,7 +1,6 @@
-import React, { Component, PropTypes, View, Text, Image, TouchableHighlight } from 'react-native';
+import React, { Component, PropTypes, View, Text, TouchableHighlight } from 'react-native';
import Icon from '../Icon';
import { TYPO } from '../config';
-import { getColor } from '../helpers';
export default class Item extends Component {
@@ -19,23 +18,23 @@ export default class Item extends Component {
};
render() {
- const { icon, value, label, onPress, active, disabled } = this.props;
+ const { icon, value, onPress } = this.props;
return (
-
+
{value}
diff --git a/lib/Drawer/Subheader.js b/lib/Drawer/Subheader.js
index ac3fddf..5d66560 100644
--- a/lib/Drawer/Subheader.js
+++ b/lib/Drawer/Subheader.js
@@ -1,7 +1,5 @@
-import React, { Component, PropTypes, View, Text, Image, TouchableHighlight } from 'react-native';
-import Icon from '../Icon';
+import React, { Component, PropTypes, View, Text } from 'react-native';
import { TYPO } from '../config';
-import { getColor } from '../helpers';
export default class Subheader extends Component {
diff --git a/lib/Drawer/index.js b/lib/Drawer/index.js
index f9d7ba1..d38918e 100644
--- a/lib/Drawer/index.js
+++ b/lib/Drawer/index.js
@@ -1,5 +1,5 @@
import React, { Component, PropTypes, ScrollView } from 'react-native';
-import { TYPO, PRIMARY, THEME_NAME, PRIMARY_COLORS } from '../config';
+import { THEME_NAME, PRIMARY_COLORS } from '../config';
import { getColor } from '../helpers';
import Header from './Header';
@@ -12,7 +12,7 @@ export default class Drawer extends Component {
theme: PropTypes.oneOf(THEME_NAME),
primary: PropTypes.oneOf(PRIMARY_COLORS),
overrides: PropTypes.shape({
- backgroundColor: PropTypes.string,
+ backgroundColor: PropTypes.string
}),
children: PropTypes.node.isRequired
};
@@ -29,7 +29,7 @@ export default class Drawer extends Component {
static Subheader = Subheader;
render() {
- const { theme, primary, overrides, children } = this.props;
+ const { theme, overrides, children } = this.props;
const backgroundColorMap = {
light: '#ffffff',
diff --git a/lib/Icon.js b/lib/Icon.js
index 9bd4858..c05138a 100644
--- a/lib/Icon.js
+++ b/lib/Icon.js
@@ -24,7 +24,8 @@ export default class Icon extends Component {
name={name}
size={size}
color={getColor(color)}
- style={style} />
+ style={style}
+ />
);
}
}
diff --git a/lib/IconButton.js b/lib/IconButton.js
index c3433fa..356a657 100644
--- a/lib/IconButton.js
+++ b/lib/IconButton.js
@@ -1,6 +1,5 @@
import React, { Component, PropTypes, View, Text } from 'react-native';
import { getColor } from './helpers';
-import Icon from './Icon';
import Ripple from './Ripple';
export default class IconButton extends Component {
@@ -57,6 +56,6 @@ const styles = {
paddingHorizontal: 3
},
counterText: {
- fontSize: 8,
+ fontSize: 8
}
-}
\ No newline at end of file
+};
\ No newline at end of file
diff --git a/lib/List.js b/lib/List.js
index 8ba5fc9..e2d6c52 100644
--- a/lib/List.js
+++ b/lib/List.js
@@ -47,7 +47,7 @@ export default class List extends Component {
return (
diff --git a/lib/config.js b/lib/config.js
index 3797dc5..832b8a8 100644
--- a/lib/config.js
+++ b/lib/config.js
@@ -1,4 +1,3 @@
-import { StyleSheet } from 'react-native';
import { typography, color } from 'react-native-material-design-styles';
/**