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
b1c27287
Commit
b1c27287
authored
Feb 21, 2016
by
zooble
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #25 from jimthedev/patch-1
fix animation and small padding when in landscape
parents
8a1239d2
67edcfe0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
index.js
index.js
+13
-10
No files found.
index.js
View file @
b1c27287
...
...
@@ -18,6 +18,9 @@ let PickerItem = Picker.Item;
let
width
=
Dimensions
.
get
(
'
window
'
).
width
;
let
height
=
Dimensions
.
get
(
'
window
'
).
height
;
const
longSide
=
width
>
height
?
width
:
height
;
const
shortSide
=
width
>
height
?
height
:
width
;
export
default
class
PickerAny
extends
React
.
Component
{
static
propTypes
=
{
...
...
@@ -468,7 +471,7 @@ export default class PickerAny extends React.Component {
render
(){
return
(
<
Animated
.
View
style
=
{[
styles
.
picker
,
{
width
:
this
.
state
.
pickerWidth
,
width
:
longSide
,
height
:
this
.
state
.
pickerHeight
,
bottom
:
this
.
state
.
slideAnim
},
this
.
state
.
style
]}
>
...
...
@@ -485,7 +488,7 @@ export default class PickerAny extends React.Component {
onPress
=
{
this
.
_pickerFinish
.
bind
(
this
)}
>
{
this
.
state
.
pickerBtnText
}
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
pickerWrap
}
>
<
View
style
=
{
[
styles
.
pickerWrap
,
{
width
:
this
.
state
.
pickerWidth
}]
}
>
{
this
.
_renderWheel
(
this
.
state
.
pickerData
)}
<
/View
>
<
/Animated.View
>
...
...
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