Toggle navigation
Toggle navigation
This project
Loading...
Sign in
신승민
/
pocketMovie
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
신승민
2019-12-04 18:02:23 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b87865785b204273822d5a3c0daf565d74cd4766
b8786578
1 parent
552c0710
UI Update
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
92 additions
and
16 deletions
Components/AppTabNavigator/MovieRankingTab.js
Components/AppTabNavigator/SeenMovieTab.js
Components/AppTabNavigator/WantToWatchTab.js
Components/MainScreen.js
yarn-error.log
Components/AppTabNavigator/MovieRankingTab.js
0 → 100644
View file @
b878657
import
React
,
{
Component
}
from
'react'
;
import
{
View
,
Text
,
StyleSheet
}
from
'react-native'
;
import
{
Icon
}
from
'native-base'
;
export
default
class
MovieRankingTab
extends
Component
{
static
navigationOptions
=
{
tabBarIcon
:
({
tintColor
})
=>
(
<
Icon
name
=
'ios-trophy'
style
=
{{
color
:
tintColor
}}
/
>
)
}
render
()
{
return
(
<
View
style
=
{
style
.
container
}
>
<
Text
>
MovieRankingTab
<
/Text
>
<
/View
>
);
}
}
const
style
=
StyleSheet
.
create
({
container
:
{
flex
:
1
,
alignItems
:
'center'
,
justifyContent
:
'center'
,
}
});
\ No newline at end of file
Components/AppTabNavigator/SeenMovieTab.js
0 → 100644
View file @
b878657
import
React
,
{
Component
}
from
'react'
;
import
{
View
,
Text
,
StyleSheet
}
from
'react-native'
;
import
{
Icon
}
from
'native-base'
;
export
default
class
SeenMovieTab
extends
Component
{
static
navigationOptions
=
{
tabBarIcon
:
({
tintColor
})
=>
(
<
Icon
name
=
'ios-albums'
style
=
{{
color
:
tintColor
}}
/
>
)
}
render
()
{
return
(
<
View
style
=
{
style
.
container
}
>
<
Text
>
SeenMovieTab
<
/Text
>
<
/View
>
);
}
}
const
style
=
StyleSheet
.
create
({
container
:
{
flex
:
1
,
alignItems
:
'center'
,
justifyContent
:
'center'
,
}
});
\ No newline at end of file
Components/AppTabNavigator/WantToWatchTab.js
0 → 100644
View file @
b878657
import
React
,
{
Component
}
from
'react'
;
import
{
View
,
Text
,
StyleSheet
}
from
'react-native'
;
import
{
Icon
}
from
'native-base'
;
export
default
class
WantToWatchTab
extends
Component
{
static
navigationOptions
=
{
tabBarIcon
:
({
tintColor
})
=>
(
<
Icon
name
=
'ios-star'
style
=
{{
color
:
tintColor
}}
/
>
)
}
render
()
{
return
(
<
View
style
=
{
style
.
container
}
>
<
Text
>
WantToWatchTab
<
/Text
>
<
/View
>
);
}
}
const
style
=
StyleSheet
.
create
({
container
:
{
flex
:
1
,
alignItems
:
'center'
,
justifyContent
:
'center'
,
}
});
\ No newline at end of file
Components/MainScreen.js
View file @
b878657
...
...
@@ -3,20 +3,17 @@ import { StyleSheet, Text, View } from 'react-native';
import
{
Icon
}
from
'native-base'
;
// 추가된 코드
import
{
createAppContainer
}
from
'react-navigation'
;
import
{
createMaterialTopTabNavigator
}
from
'react-navigation-tabs'
;
import
HomeTab
from
'./AppTabNavigator/HomeTab'
;
import
SearchTab
from
'./AppTabNavigator/SearchTab'
;
import
AddMediaTab
from
'./AppTabNavigator/AddMediaTab'
;
import
LikesTab
from
'./AppTabNavigator/LikesTab'
;
import
ProfileTab
from
'./AppTabNavigator/ProfileTab'
;
import
SeenMovieTab
from
'./AppTabNavigator/MovieRankingTab'
;
import
MovieRankingTab
from
'./AppTabNavigator/WantToWatchTab'
;
import
WantToWatchTab
from
'./AppTabNavigator/SeenMovieTab'
;
import
{
Platform
}
from
'react-native'
//import { Ionicons } from '@expo/vector-icons';
const
AppTabNavigator
=
createMaterialTopTabNavigator
({
HomeTab
:{
screen
:
HomeTab
},
Search
:{
screen
:
SearchTab
},
AddMedia
:{
screen
:
AddMediaTab
},
Likes
:{
screen
:
LikesTab
},
Profile
:{
screen
:
ProfileTab
}
"SeenMovieTab"
:{
screen
:
SeenMovieTab
},
"MovieRankingTab"
:{
screen
:
MovieRankingTab
},
"WantToWatchTab"
:{
screen
:
WantToWatchTab
}
},
{
animationEnabled
:
true
,
swipeEnabled
:
true
,
...
...
@@ -29,11 +26,11 @@ const AppTabNavigator = createMaterialTopTabNavigator({
}
})
},
iconStyle
:
{
height
:
8
},
iconStyle
:
{
height
:
30
},
activeTintColor
:
'#000'
,
inactiveTintColor
:
'#d1cece'
,
upperCaseLabel
:
false
,
showLabel
:
tru
e
,
showLabel
:
fals
e
,
showIcon
:
true
,
}
});
...
...
@@ -43,9 +40,9 @@ const AppTabContainet = createAppContainer(AppTabNavigator);
export
default
class
MainScreen
extends
Component
{
// navigationOptions 코드 추가
static
navigationOptions
=
{
headerLeft
:
<
Icon
name
=
'ios-camera'
style
=
{{
paddingLeft
:
10
}}
/>
,
title
:
'
p
oketMovie'
,
headerRight
:
<
Icon
name
=
'ios-se
nd
'
style
=
{{
paddingRight
:
10
}}
/>
,
//
headerLeft: <Icon name='ios-camera' style={{ paddingLeft:10 }}/>,
title
:
'
P
oketMovie'
,
headerRight
:
<
Icon
name
=
'ios-se
arch
'
style
=
{{
paddingRight
:
10
}}
/>
,
}
render
()
{
...
...
yarn-error.log
View file @
b878657
...
...
@@ -14,7 +14,7 @@ Platform:
win32 x64
Trace:
Error: EPERM: operation not permitted, unlink 'C:\Users\SSM\Desktop\open_proj\pocketMovie\node_modules\@babel\generator\node_modules\.bin'
Error: EPERM: operation not permitted, unlink 'C:\Users\SSM\Desktop\open_proj\
khuhub\
pocketMovie\node_modules\@babel\generator\node_modules\.bin'
npm manifest:
{
...
...
Please
register
or
login
to post a comment