Skip to content

Commit

Permalink
Migrate to prop-types
Browse files Browse the repository at this point in the history
  • Loading branch information
orenklein authored and obipawan committed May 19, 2017
1 parent 52162ae commit 7481ede
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dash.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

import React from 'react'
import PropTypes from 'prop-types'
import { View, StyleSheet } from 'react-native'
import MeasureMeHOC from 'react-native-measureme'
import { getDashStyle, isStyleRow } from './util'
Expand Down Expand Up @@ -44,10 +45,10 @@ const styles = StyleSheet.create({

Dash.propTypes = {
style: View.propTypes.style,
dashGap: React.PropTypes.number.isRequired,
dashLength: React.PropTypes.number.isRequired,
dashThickness: React.PropTypes.number.isRequired,
dashColor: React.PropTypes.string,
dashGap: PropTypes.number.isRequired,
dashLength: PropTypes.number.isRequired,
dashThickness: PropTypes.number.isRequired,
dashColor: PropTypes.string,
dashStyle: View.propTypes.style,
}

Expand Down

0 comments on commit 7481ede

Please sign in to comment.