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

Commit afe12a9

Browse files
author
Teemu Tiilikainen
committed
Use ColorPropType to validate color prop
1 parent 347262c commit afe12a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/ActivityIndicator.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import React from 'react';
55
import NativeMethodsMixin from '../mixins/NativeMethodsMixin';
66
import View from './View';
7+
import ColorPropType from '../propTypes/ColorPropType';
78

89
const { PropTypes } = React;
910

@@ -17,7 +18,7 @@ const ActivityIndicator = React.createClass({
1718
/**
1819
* The foreground color of the spinner (default is gray).
1920
*/
20-
color: PropTypes.string,
21+
color: ColorPropType,
2122
/**
2223
* Whether the indicator should hide when not animating (true by default).
2324
*/

0 commit comments

Comments
 (0)