Skip to content

Commit 25b6515

Browse files
committed
[ReactNative] Small docs cleanup in ActivityIndicatorIOS and DatePickerIOS
Summary: Summary: Makes sure that it looks good in the website Closes facebook#160 Github Author: Christopher Chedeau <vjeux@fb.com> Test Plan: Run the website CC: Task ID: #
1 parent 72acf5b commit 25b6515

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

Libraries/Components/ActivityIndicatorIOS/ActivityIndicatorIOS.ios.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@ var ActivityIndicatorIOS = React.createClass({
3737
*/
3838
color: PropTypes.string,
3939

40+
/**
41+
* Size of the indicator. Small has a height of 20, large has a height of 36.
42+
*/
4043
size: PropTypes.oneOf([
41-
'small', // default
44+
'small',
4245
'large',
4346
]),
4447
},

Libraries/Components/DatePicker/DatePickerIOS.ios.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,16 @@ var DatePickerIOS = React.createClass({
6262

6363
/**
6464
* The date picker mode.
65-
*
66-
* Valid modes on iOS are: 'date', 'time', 'datetime'.
6765
*/
68-
mode: PropTypes.oneOf(Object.keys(RCTDatePickerIOSConsts.DatePickerModes)),
66+
mode: PropTypes.oneOf(['date', 'time', 'datetime']),
6967

7068
/**
7169
* The interval at which minutes can be selected.
7270
*/
7371
minuteInterval: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30]),
7472

7573
/**
76-
* Timezone offset in seconds.
74+
* Timezone offset in minutes.
7775
*
7876
* By default, the date picker will use the device's timezone. With this
7977
* parameter, it is possible to force a certain timezone offset. For

0 commit comments

Comments
 (0)