非常教程

React native参考手册

组件:DatePickerIOS | Components: DatePickerIOS

DatePickerIOS

用于DatePickerIOS在iOS上呈现日期/时间选择器(选择器)。这是一个受控组件,因此您必须挂钩onDateChange回调并更新dateprop以便更新组件,否则用户的更改将立即恢复以反映props.date作为真相的来源。

道具

ViewPropTypes props...

date: Date

当前选择的日期。

maximumDate?: Date

最大日期。

限制可能的日期/时间值的范围。

minimumDate?: Date

最短日期。

限制可能的日期/时间值的范围。

minuteInterval?: enum(1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30)

可以选择分钟的时间间隔。

mode?: enum('date', 'time', 'datetime')

日期选择器模式。

onDateChange: function

日期更改处理器。

这是在用户更改UI中的日期或时间时调用的。第一个也是唯一的参数是表示新日期和时间的Date对象。

timeZoneOffsetInMinutes?: number

以分钟为单位的时区偏移。

默认情况下,日期选择器将使用设备的时区。使用此参数,可以强制某个时区偏移量。例如,要在太平洋标准时间显示时间,请通过-7 * 60。

组件:DatePickerIOS | Components: DatePickerIOS相关

React native

React Native 是一个 JavaScript 的框架,用来撰写实时的、可原生呈现 iOS 和 Android 的应用。

主页 https://facebook.github.io/react-native/
源码 https://github.com/facebook/react-native
发布版本 0.49

React native目录

1.开始 | Getting Started
2.指南 | Guides
3.APIs
4.组件:ActivityIndicator | Components: ActivityIndicator
5.组件:按钮 | Components: Button
6.组件:CheckBox | Components: CheckBox
7.组件:DatePickerIOS | Components: DatePickerIOS
8.组件:DrawerLayoutAndroid | Components: DrawerLayoutAndroid
9.组件:FlatList | Components: FlatList
10.组件:图像 | Components: Image
11.组件:KeyboardAvoidingView | Components: KeyboardAvoidingView
12.Components: ListView
13.Components: MaskedViewIOS
14.Components: Modal
15.Components: NavigatorIOS
16.Components: Picker
17.Components: PickerIOS
18.Components: ProgressBarAndroid
19.Components: ProgressViewIOS
20.Components: RefreshControl
21.Components: ScrollView
22.Components: SectionList
23.Components: SegmentedControlIOS
24.Components: Slider
25.Components: SnapshotViewIOS
26.Components: StatusBar
27.Components: Switch
28.Components: TabBarIOS
29.Components: TabBarIOS.Item
30.Components: Text
31.Components: TextInput
32.Components: ToolbarAndroid
33.Components: TouchableHighlight
34.Components: TouchableNativeFeedback
35.Components: TouchableOpacity
36.Components: TouchableWithoutFeedback
37.Components: View
38.Components: ViewPagerAndroid
39.Components: VirtualizedList
40.Components: WebView
41.创建 | Contributing
42.指南(Android) | Guides (Android)
43.指南(IOS) | Guides (iOS)
44.其他 | Miscellaneous