Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Mobile
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
191
Issues
191
List
Boards
Labels
Service Desk
Milestones
Merge Requests
17
Merge Requests
17
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Minds
Minds Mobile
Commits
448e355c
Commit
448e355c
authored
28 minutes ago
by
Juan Manuel Solaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat) add close button and change fonts
parent
65b092ed
feat/selector-component
1 merge request
!394
WIP: [Sprint/PinkPanther] (feat) Selector Component
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
16 deletions
+36
-16
src/common/components/Selector.js
src/common/components/Selector.js
+36
-16
No files found.
src/common/components/Selector.js
View file @
448e355c
...
...
@@ -2,8 +2,9 @@ import React, {
Component
}
from
'
react
'
;
import
{
View
,
StyleSheet
}
from
'
react-native
'
;
import
{
Text
}
from
'
react-native-elements
'
;
import
{
Text
,
Icon
}
from
'
react-native-elements
'
;
import
Modal
from
'
react-native-modal
'
;
import
{
CommonStyle
}
from
'
../../styles/Common
'
;
export
default
class
Selector
extends
Component
{
...
...
@@ -21,30 +22,49 @@ export default class Selector extends Component {
this
.
setState
({
show
:
true
});
}
close
=
()
=>
{
this
.
setState
({
show
:
false
});
}
render
()
{
const
show
=
this
.
state
.
show
;
return
(
<
Modal
isVisible
=
{
show
}
>
<
View
style
=
{
styles
.
container
}
>
<
Text
style
=
{{
color
:
'
white
'
}}
>
Selector
Title
<
/Text
>
<
View
style
=
{[
styles
.
container
]}
>
<
Text
style
=
{[{
color
:
'
white
'
},
CommonStyle
.
fontXL
]}
>
Selector
Title
<
/Text
>
<
View
style
=
{{
height
:
570
}}
>
<
Text
style
=
{{
color
:
'
white
'
}}
>
List
<
/Text
>
<
/View
>
<
Icon
raised
name
=
"
md-close
"
type
=
'
ionicon
'
color
=
'
black
'
size
=
{
24
}
containerStyle
=
{
styles
.
iconContainer
}
onPress
=
{
this
.
close
}
/
>
<
/View
>
<
/Modal
>
)
}
}
const
styles
=
StyleSheet
.
create
({
container
:
{
backgroundColor
:
'
transparent
'
,
width
:
200
,
height
:
450
,
alignItems
:
'
center
'
,
justifyContent
:
'
center
'
,
position
:
'
absolute
'
,
top
:
-
150
,
right
:
70
}
container
:
{
backgroundColor
:
'
transparent
'
,
width
:
200
,
height
:
650
,
alignItems
:
'
center
'
,
justifyContent
:
'
center
'
,
position
:
'
absolute
'
,
top
:
50
,
right
:
70
,
},
iconContainer
:
{
backgroundColor
:
'
white
'
,
width
:
55
,
height
:
55
,
zIndex
:
1000
,
},
});
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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