Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Use ColorPropType to validate color prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Teemu Tiilikainen committed Jun 30, 2016
1 parent 347262c commit afe12a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/ActivityIndicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import React from 'react';
import NativeMethodsMixin from '../mixins/NativeMethodsMixin';
import View from './View';
import ColorPropType from '../propTypes/ColorPropType';

const { PropTypes } = React;

Expand All @@ -17,7 +18,7 @@ const ActivityIndicator = React.createClass({
/**
* The foreground color of the spinner (default is gray).
*/
color: PropTypes.string,
color: ColorPropType,
/**
* Whether the indicator should hide when not animating (true by default).
*/
Expand Down

0 comments on commit afe12a9

Please sign in to comment.