Skip to content

Commit

Permalink
🚀 0.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
xinthink committed Aug 1, 2015
1 parent 0db86de commit 08b1cb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions Source/Lib/mdl/Switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//
// - @see [MDL Switch](http://bit.ly/1IcHMPo)
// - [Props](#props)
// - [Defaults](#props)
// - [Defaults](#defaults)
//
// Created by ywu on 15/7/28.
//
Expand All @@ -20,11 +20,9 @@ const {
TouchableWithoutFeedback,
} = React;

//
// ## <section id='thumb'>Thumb</section>
// `Thumb` component of the `Switch`.
// Which is displayed as a circle with shadow and ripple effect.
//
class Thumb extends Component {
constructor(props) {
super(props);
Expand Down Expand Up @@ -151,7 +149,6 @@ const AnimatedThumb = Animated.createAnimatedComponent(Thumb);

// ## <section id='switch'>Switch</section>
// The `Switch` component. Which is made up of a `Track` and a [`Thumb`](#thumb).
//
class Switch extends Component {
constructor(props) {
super(props);
Expand Down Expand Up @@ -329,9 +326,7 @@ class Switch extends Component {
}
}

//
// ## <section id='props'>Props</section>
//
Switch.propTypes = {
// Touchable...
...TouchableWithoutFeedback.propTypes,
Expand Down Expand Up @@ -367,9 +362,7 @@ Switch.propTypes = {
rippleAniDuration: React.PropTypes.number,
};

//
// ## <section id='defaults'>Defaults</section>
//
Switch.defaultProps = {
checked: false,
onColor: 'rgba(63,81,181,0.4)', // Indigo + alpha
Expand Down
2 changes: 1 addition & 1 deletion Source/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-material-kit",
"version": "0.1.5",
"version": "0.1.6",
"description": "Material Design components for React Native",
"main": "Lib/index.ios.js",
"author": "Yingxin Wu <yingxinwu.g@gmail.com>",
Expand Down

0 comments on commit 08b1cb5

Please sign in to comment.