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
e23e33df
Commit
e23e33df
authored
Sep 22, 2016
by
xwenliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
android toggle bug
parent
1ba6216e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
5 deletions
+19
-5
README.md
README.md
+0
-3
doc/ui.gif
doc/ui.gif
+0
-0
doc/ui2.jpg
doc/ui2.jpg
+0
-0
example/PickerTest/index.js
example/PickerTest/index.js
+16
-0
index.js
index.js
+3
-2
No files found.
README.md
View file @
e23e33df
...
...
@@ -6,9 +6,6 @@ A Native Picker with high performance.
pure javascript version ->
[
v3.0.5
](
https://github.com/beefe/react-native-picker/tree/pure-javascript-version
)


###Documentation
...
...
doc/ui.gif
deleted
100644 → 0
View file @
1ba6216e
299 KB
doc/ui2.jpg
View replaced file @
1ba6216e
View file @
e23e33df
32.9 KB
|
W:
|
H:
70.8 KB
|
W:
|
H:
2-up
Swipe
Onion skin
example/PickerTest/index.js
View file @
e23e33df
...
...
@@ -110,6 +110,16 @@ export default class PickerTest extends Component {
});
}
_toggle
()
{
Picker
.
toggle
();
}
_isPickerShow
(){
Picker
.
isPickerShow
(
status
=>
{
alert
(
status
);
});
}
render
()
{
return
(
<
View
style
=
{{
height
:
Dimensions
.
get
(
'
window
'
).
height
}}
>
...
...
@@ -119,6 +129,12 @@ export default class PickerTest extends Component {
<
TouchableOpacity
style
=
{{
marginTop
:
10
,
marginLeft
:
20
}}
onPress
=
{
this
.
_showAreaPicker
.
bind
(
this
)}
>
<
Text
>
AreaPicker
<
/Text
>
<
/TouchableOpacity
>
<
TouchableOpacity
style
=
{{
marginTop
:
10
,
marginLeft
:
20
}}
onPress
=
{
this
.
_toggle
.
bind
(
this
)}
>
<
Text
>
toggle
<
/Text
>
<
/TouchableOpacity
>
<
TouchableOpacity
style
=
{{
marginTop
:
10
,
marginLeft
:
20
}}
onPress
=
{
this
.
_isPickerShow
.
bind
(
this
)}
>
<
Text
>
isPickerShow
<
/Text
>
<
/TouchableOpacity
>
<
/View
>
);
}
...
...
index.js
View file @
e23e33df
...
...
@@ -67,8 +67,9 @@ export default {
},
isPickerShow
(
fn
){
Picker
.
isPickerShow
(
hide
=>
{
fn
(
!
hide
);
//android return show or not, ios return hide or not...
Picker
.
isPickerShow
(
status
=>
{
fn
(
android
?
status
:
!
status
);
});
}
};
\ No newline at end of file
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