Showing
5 changed files
with
92 additions
and
16 deletions
1 | +import React, { Component } from 'react'; | ||
2 | +import { View, Text, StyleSheet } from 'react-native'; | ||
3 | +import { Icon } from 'native-base'; | ||
4 | + | ||
5 | +export default class MovieRankingTab extends Component { | ||
6 | + static navigationOptions = { | ||
7 | + tabBarIcon: ({ tintColor }) => ( | ||
8 | + <Icon name='ios-trophy' style={{ color: tintColor }} /> | ||
9 | + ) | ||
10 | + } | ||
11 | + render() { | ||
12 | + return ( | ||
13 | + <View style={style.container}> | ||
14 | + <Text>MovieRankingTab</Text> | ||
15 | + </View> | ||
16 | + ); | ||
17 | + } | ||
18 | +} | ||
19 | + | ||
20 | +const style = StyleSheet.create({ | ||
21 | + container: { | ||
22 | + flex: 1, | ||
23 | + alignItems: 'center', | ||
24 | + justifyContent: 'center', | ||
25 | + } | ||
26 | +}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
Components/AppTabNavigator/SeenMovieTab.js
0 → 100644
1 | +import React, { Component } from 'react'; | ||
2 | +import { View, Text, StyleSheet } from 'react-native'; | ||
3 | +import { Icon } from 'native-base'; | ||
4 | + | ||
5 | +export default class SeenMovieTab extends Component { | ||
6 | + static navigationOptions = { | ||
7 | + tabBarIcon: ({ tintColor }) => ( | ||
8 | + <Icon name='ios-albums' style={{ color: tintColor }} /> | ||
9 | + ) | ||
10 | + } | ||
11 | + render() { | ||
12 | + return ( | ||
13 | + <View style={style.container}> | ||
14 | + <Text>SeenMovieTab</Text> | ||
15 | + </View> | ||
16 | + ); | ||
17 | + } | ||
18 | +} | ||
19 | + | ||
20 | +const style = StyleSheet.create({ | ||
21 | + container: { | ||
22 | + flex: 1, | ||
23 | + alignItems: 'center', | ||
24 | + justifyContent: 'center', | ||
25 | + } | ||
26 | +}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
Components/AppTabNavigator/WantToWatchTab.js
0 → 100644
1 | +import React, { Component } from 'react'; | ||
2 | +import { View, Text, StyleSheet } from 'react-native'; | ||
3 | +import { Icon } from 'native-base'; | ||
4 | + | ||
5 | +export default class WantToWatchTab extends Component { | ||
6 | + | ||
7 | + static navigationOptions = { | ||
8 | + tabBarIcon: ({ tintColor }) => ( | ||
9 | + <Icon name='ios-star' style={{ color: tintColor }} /> | ||
10 | + ) | ||
11 | + } | ||
12 | + render() { | ||
13 | + return ( | ||
14 | + <View style={style.container}> | ||
15 | + <Text>WantToWatchTab</Text> | ||
16 | + </View> | ||
17 | + ); | ||
18 | + } | ||
19 | +} | ||
20 | + | ||
21 | +const style = StyleSheet.create({ | ||
22 | + container: { | ||
23 | + flex: 1, | ||
24 | + alignItems: 'center', | ||
25 | + justifyContent: 'center', | ||
26 | + } | ||
27 | +}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -3,20 +3,17 @@ import { StyleSheet, Text, View } from 'react-native'; | ... | @@ -3,20 +3,17 @@ import { StyleSheet, Text, View } from 'react-native'; |
3 | import { Icon } from 'native-base'; // 추가된 코드 | 3 | import { Icon } from 'native-base'; // 추가된 코드 |
4 | import { createAppContainer } from 'react-navigation'; | 4 | import { createAppContainer } from 'react-navigation'; |
5 | import { createMaterialTopTabNavigator } from 'react-navigation-tabs'; | 5 | import { createMaterialTopTabNavigator } from 'react-navigation-tabs'; |
6 | -import HomeTab from './AppTabNavigator/HomeTab'; | 6 | +import SeenMovieTab from './AppTabNavigator/MovieRankingTab'; |
7 | -import SearchTab from './AppTabNavigator/SearchTab'; | 7 | +import MovieRankingTab from './AppTabNavigator/WantToWatchTab'; |
8 | -import AddMediaTab from './AppTabNavigator/AddMediaTab'; | 8 | +import WantToWatchTab from './AppTabNavigator/SeenMovieTab'; |
9 | -import LikesTab from './AppTabNavigator/LikesTab'; | ||
10 | -import ProfileTab from './AppTabNavigator/ProfileTab'; | ||
11 | import { Platform } from 'react-native' | 9 | import { Platform } from 'react-native' |
10 | +//import { Ionicons } from '@expo/vector-icons'; | ||
12 | 11 | ||
13 | 12 | ||
14 | const AppTabNavigator = createMaterialTopTabNavigator({ | 13 | const AppTabNavigator = createMaterialTopTabNavigator({ |
15 | - HomeTab:{ screen: HomeTab }, | 14 | + "SeenMovieTab":{ screen: SeenMovieTab }, |
16 | - Search:{ screen: SearchTab }, | 15 | + "MovieRankingTab":{ screen: MovieRankingTab }, |
17 | - AddMedia:{ screen: AddMediaTab }, | 16 | + "WantToWatchTab":{ screen: WantToWatchTab } |
18 | - Likes:{ screen: LikesTab }, | ||
19 | - Profile:{ screen: ProfileTab } | ||
20 | }, { | 17 | }, { |
21 | animationEnabled: true, | 18 | animationEnabled: true, |
22 | swipeEnabled: true, | 19 | swipeEnabled: true, |
... | @@ -29,11 +26,11 @@ const AppTabNavigator = createMaterialTopTabNavigator({ | ... | @@ -29,11 +26,11 @@ const AppTabNavigator = createMaterialTopTabNavigator({ |
29 | } | 26 | } |
30 | }) | 27 | }) |
31 | }, | 28 | }, |
32 | - iconStyle: { height: 8 }, | 29 | + iconStyle: { height: 30 }, |
33 | activeTintColor: '#000', | 30 | activeTintColor: '#000', |
34 | inactiveTintColor: '#d1cece', | 31 | inactiveTintColor: '#d1cece', |
35 | upperCaseLabel: false, | 32 | upperCaseLabel: false, |
36 | - showLabel: true, | 33 | + showLabel: false, |
37 | showIcon: true, | 34 | showIcon: true, |
38 | } | 35 | } |
39 | }); | 36 | }); |
... | @@ -43,9 +40,9 @@ const AppTabContainet = createAppContainer(AppTabNavigator); | ... | @@ -43,9 +40,9 @@ const AppTabContainet = createAppContainer(AppTabNavigator); |
43 | export default class MainScreen extends Component { | 40 | export default class MainScreen extends Component { |
44 | // navigationOptions 코드 추가 | 41 | // navigationOptions 코드 추가 |
45 | static navigationOptions = { | 42 | static navigationOptions = { |
46 | - headerLeft: <Icon name='ios-camera' style={{ paddingLeft:10 }}/>, | 43 | + //headerLeft: <Icon name='ios-camera' style={{ paddingLeft:10 }}/>, |
47 | - title: 'poketMovie', | 44 | + title: 'PoketMovie', |
48 | - headerRight: <Icon name='ios-send' style={{ paddingRight:10 }}/>, | 45 | + headerRight: <Icon name='ios-search' style={{ paddingRight:10 }}/>, |
49 | } | 46 | } |
50 | 47 | ||
51 | render() { | 48 | render() { | ... | ... |
... | @@ -14,7 +14,7 @@ Platform: | ... | @@ -14,7 +14,7 @@ Platform: |
14 | win32 x64 | 14 | win32 x64 |
15 | 15 | ||
16 | Trace: | 16 | Trace: |
17 | - Error: EPERM: operation not permitted, unlink 'C:\Users\SSM\Desktop\open_proj\pocketMovie\node_modules\@babel\generator\node_modules\.bin' | 17 | + Error: EPERM: operation not permitted, unlink 'C:\Users\SSM\Desktop\open_proj\khuhub\pocketMovie\node_modules\@babel\generator\node_modules\.bin' |
18 | 18 | ||
19 | npm manifest: | 19 | npm manifest: |
20 | { | 20 | { | ... | ... |
-
Please register or login to post a comment