Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
react-native-picker
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ym
react-native-picker
Commits
bdcc50d6
Commit
bdcc50d6
authored
Nov 15, 2016
by
xwenliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: example bug, Leap day for years that are divisible by 4
parent
bc4c976f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
example/PickerTest/index.js
example/PickerTest/index.js
+4
-0
No files found.
example/PickerTest/index.js
View file @
bdcc50d6
...
...
@@ -22,6 +22,10 @@ function createDateData(){
for
(
let
k
=
1
;
k
<
29
;
k
++
){
day
.
push
(
k
+
'
日
'
);
}
//Leap day for years that are divisible by 4, such as 2000, 2004
if
(
i
%
4
===
0
){
day
.
push
(
29
+
'
日
'
);
}
}
else
if
(
j
in
{
1
:
1
,
3
:
1
,
5
:
1
,
7
:
1
,
8
:
1
,
10
:
1
,
12
:
1
}){
for
(
let
k
=
1
;
k
<
32
;
k
++
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment