Merge branch 'master' of ssh://khuhub.khu.ac.kr:12959/2016104130/pocketMovie
Showing
6 changed files
with
46 additions
and
75 deletions
... | @@ -3,11 +3,15 @@ import { StyleSheet, Text, View } from "react-native"; | ... | @@ -3,11 +3,15 @@ import { StyleSheet, Text, View } from "react-native"; |
3 | import { createAppContainer } from "react-navigation"; | 3 | import { createAppContainer } from "react-navigation"; |
4 | import { createStackNavigator } from "react-navigation-stack"; | 4 | import { createStackNavigator } from "react-navigation-stack"; |
5 | import MainScreen from "./Components/MainScreen"; | 5 | import MainScreen from "./Components/MainScreen"; |
6 | +import Detail from "./Components/AppTabNavigator/Detail" | ||
6 | // import MovieInfo from "./Components/MovieInfo"; | 7 | // import MovieInfo from "./Components/MovieInfo"; |
7 | 8 | ||
8 | const AppStackNavigator = createStackNavigator({ | 9 | const AppStackNavigator = createStackNavigator({ |
9 | Main: { | 10 | Main: { |
10 | - screen: MainScreen // MainScreen 컴포넌트를 네비게이터에 등록 | 11 | + screen: MainScreen // MainScreen 컴포넌트를 네비게이터에 등록 |
12 | + }, | ||
13 | + Datail:{ | ||
14 | + screen: Detail | ||
11 | } | 15 | } |
12 | }); | 16 | }); |
13 | 17 | ... | ... |
... | @@ -201,6 +201,11 @@ export default class MovieRankingTab extends Component { | ... | @@ -201,6 +201,11 @@ export default class MovieRankingTab extends Component { |
201 | console.log(error); | 201 | console.log(error); |
202 | }); | 202 | }); |
203 | }; | 203 | }; |
204 | + | ||
205 | + printData = async key => { | ||
206 | + value = await AsyncStorage.getItem(key); | ||
207 | + console.log(value); | ||
208 | + }; | ||
204 | componentDidMount() { | 209 | componentDidMount() { |
205 | var day = new Date().getDate() - 1; // 어제 날짜 | 210 | var day = new Date().getDate() - 1; // 어제 날짜 |
206 | if (day == 1) { | 211 | if (day == 1) { |
... | @@ -212,6 +217,8 @@ export default class MovieRankingTab extends Component { | ... | @@ -212,6 +217,8 @@ export default class MovieRankingTab extends Component { |
212 | var year = new Date().getFullYear(); //Current Year | 217 | var year = new Date().getFullYear(); //Current Year |
213 | var date = year + "" + month + day; | 218 | var date = year + "" + month + day; |
214 | this.getMovieList(date); | 219 | this.getMovieList(date); |
220 | + | ||
221 | + //this.printData('쥬만지: 넥스트 레벨') | ||
215 | } | 222 | } |
216 | 223 | ||
217 | //눌렀을 때 저장함수 | 224 | //눌렀을 때 저장함수 | ... | ... |
1 | import React, { Component } from "react"; | 1 | import React, { Component } from "react"; |
2 | -import { View, Text, StyleSheet } from "react-native"; | 2 | +import { View, Text, StyleSheet, Button } from "react-native"; |
3 | import { Icon } from "native-base"; | 3 | import { Icon } from "native-base"; |
4 | +import { withNavigation } from 'react-navigation'; | ||
5 | +import { navigation, StackActions, NavigationActions } from 'react-navigation'; | ||
6 | +import 'react-native-gesture-handler' | ||
7 | +import Detail from './Detail' | ||
4 | 8 | ||
5 | export default class SeenMovieTab extends Component { | 9 | export default class SeenMovieTab extends Component { |
6 | static navigationOptions = { | 10 | static navigationOptions = { |
... | @@ -8,15 +12,18 @@ export default class SeenMovieTab extends Component { | ... | @@ -8,15 +12,18 @@ export default class SeenMovieTab extends Component { |
8 | <Icon name="ios-albums" style={{ color: tintColor }} /> | 12 | <Icon name="ios-albums" style={{ color: tintColor }} /> |
9 | ) | 13 | ) |
10 | }; | 14 | }; |
15 | + | ||
11 | render() { | 16 | render() { |
12 | return ( | 17 | return ( |
13 | <View style={style.container}> | 18 | <View style={style.container}> |
14 | <Text>SeenMovieTab</Text> | 19 | <Text>SeenMovieTab</Text> |
20 | + <Button title = 'hi' onPress = { () => this.props.navigation.navigate('Detail')} /> | ||
15 | </View> | 21 | </View> |
16 | ); | 22 | ); |
17 | } | 23 | } |
18 | } | 24 | } |
19 | 25 | ||
26 | + | ||
20 | const style = StyleSheet.create({ | 27 | const style = StyleSheet.create({ |
21 | container: { | 28 | container: { |
22 | backgroundColor: "black", | 29 | backgroundColor: "black", | ... | ... |
Components/Loading.js
deleted
100644 → 0
1 | -import React from "react"; | ||
2 | -import { StyleSheet, Text, View, StatusBar } from "react-native"; | ||
3 | - | ||
4 | -export default function Loading() { | ||
5 | - return ( | ||
6 | - <View style={styles.container}> | ||
7 | - <StatusBar barStyle="dark-content" /> | ||
8 | - <Text style={styles.text}>Getting the current weather</Text> | ||
9 | - </View> | ||
10 | - ); | ||
11 | -} | ||
12 | - | ||
13 | -const styles = StyleSheet.create({ | ||
14 | - container: { | ||
15 | - flex: 1, | ||
16 | - justifyContent: "flex-end", | ||
17 | - paddingHorizontal: 30, | ||
18 | - paddingVertical: 100, | ||
19 | - backgroundColor: "#FDF6AA" | ||
20 | - }, | ||
21 | - text: { | ||
22 | - color: "#2c2c2c", | ||
23 | - fontSize: 30 | ||
24 | - } | ||
25 | -}); |
Components/MovieInfo.js
deleted
100644 → 0
1 | -import React, { Component } from "react"; | ||
2 | -import { StyleSheet, Text, View, StatusBar } from "react-native"; | ||
3 | - | ||
4 | -export default class MovieRankingTab extends Component { | ||
5 | - return() { | ||
6 | - <View style={styles.container}> | ||
7 | - <StatusBar barStyle="dark-content" /> | ||
8 | - <Text style={styles.text}>Getting the current weather</Text> | ||
9 | - </View>; | ||
10 | - } | ||
11 | -} | ||
12 | - | ||
13 | -const styles = StyleSheet.create({ | ||
14 | - container: { | ||
15 | - flex: 1, | ||
16 | - justifyContent: "flex-end", | ||
17 | - paddingHorizontal: 30, | ||
18 | - paddingVertical: 100, | ||
19 | - backgroundColor: "#FDF6AA" | ||
20 | - }, | ||
21 | - text: { | ||
22 | - color: "#2c2c2c", | ||
23 | - fontSize: 30 | ||
24 | - } | ||
25 | -}); |
1 | Arguments: | 1 | Arguments: |
2 | - C:\Program Files\nodejs\node.exe C:\Users\1004n\AppData\Roaming\npm\node_modules\yarn\bin\yarn.js add ract-navigation-stack --save | 2 | + C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\yarn\bin\yarn.js add react-native-gesture-handler |
3 | 3 | ||
4 | PATH: | 4 | PATH: |
5 | - C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\nodejs\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Git\cmd;C:\TmaxData\tibero6\bin;C:\TmaxData\tibero6\client\bin;C:\Program Files\MySQL\MySQL Server 8.0\bin;C:\sqlite;C:\Program Files\MySQL\MySQL Shell 8.0\bin\;C:\Users\1004n\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Bandizip\;C:\Users\1004n\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\1004n\AppData\Roaming\npm;C:\TRV-Mars\flutter\bin;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.2\bin;C:\Users\1004n\AppData\Local\Android\Sdk\emulator;C:\Users\1004n\AppData\Local\Android\Sdk\platform-tools;C:\Users\1004n\AppData\Local\Android\Sdk\tools\bin;C:\Program Files\Java\jre1.8.0_231\bin;C:\Users\1004n\.android\avd;C:\Users\1004n\AppData\Local\atom\bin | 5 | + C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Samsung\SamsungLink\AllShare Framework DMS\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Git\cmd;C:\TmaxData\tibero6\bin;C:\TmaxData\tibero6\client\bin;C:\Program Files\PuTTY\;C:\Users\SSM\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Users\SSM\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\SSM\AppData\Local\Programs\Python\Python37\;C:\Users\SSM\AppData\Local\Microsoft\WindowsApps;C:\intelFPGA\18.1\modelsim_ase\win32aloem;C:\Users\SSM\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\SSM\AppData\Roaming\npm;C:\Users\SSM\AppData\Roaming\nvm;C:\Program Files\nodejs |
6 | 6 | ||
7 | Yarn version: | 7 | Yarn version: |
8 | - 1.21.0 | 8 | + 1.19.2 |
9 | 9 | ||
10 | Node version: | 10 | Node version: |
11 | - 10.16.0 | 11 | + 12.9.0 |
12 | 12 | ||
13 | Platform: | 13 | Platform: |
14 | win32 x64 | 14 | win32 x64 |
15 | 15 | ||
16 | Trace: | 16 | Trace: |
17 | - Error: https://registry.yarnpkg.com/ract-navigation-stack: Not found | 17 | + Error: EPERM: operation not permitted, unlink 'C:\Users\SSM\Desktop\open_proj\khuhub\pocketMovie\node_modules\@emotion\is-prop-valid\dist' |
18 | - at Request.params.callback [as _callback] (C:\Users\1004n\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:66938:18) | ||
19 | - at Request.self.callback (C:\Users\1004n\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:140622:22) | ||
20 | - at Request.emit (events.js:198:13) | ||
21 | - at Request.<anonymous> (C:\Users\1004n\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:141594:10) | ||
22 | - at Request.emit (events.js:198:13) | ||
23 | - at IncomingMessage.<anonymous> (C:\Users\1004n\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:141516:12) | ||
24 | - at Object.onceWrapper (events.js:286:20) | ||
25 | - at IncomingMessage.emit (events.js:203:15) | ||
26 | - at endReadableNT (_stream_readable.js:1129:12) | ||
27 | - at process._tickCallback (internal/process/next_tick.js:63:19) | ||
28 | 18 | ||
29 | npm manifest: | 19 | npm manifest: |
30 | { | 20 | { |
31 | "main": "node_modules/expo/AppEntry.js", | 21 | "main": "node_modules/expo/AppEntry.js", |
22 | + "rnpm": { | ||
23 | + "assets": [ | ||
24 | + "./assets/fonts" | ||
25 | + ] | ||
26 | + }, | ||
32 | "scripts": { | 27 | "scripts": { |
33 | "start": "expo start", | 28 | "start": "expo start", |
34 | "android": "expo start --android", | 29 | "android": "expo start --android", |
... | @@ -39,13 +34,14 @@ npm manifest: | ... | @@ -39,13 +34,14 @@ npm manifest: |
39 | "dependencies": { | 34 | "dependencies": { |
40 | "axios": "^0.19.0", | 35 | "axios": "^0.19.0", |
41 | "expo": "^35.0.0", | 36 | "expo": "^35.0.0", |
37 | + "expo-font": "~7.0.0", | ||
42 | "native-base": "^2.13.8", | 38 | "native-base": "^2.13.8", |
43 | "react": "16.8.3", | 39 | "react": "16.8.3", |
44 | "react-dom": "16.8.3", | 40 | "react-dom": "16.8.3", |
45 | "react-native": "https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz", | 41 | "react-native": "https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz", |
46 | "react-native-axios": "^0.17.1", | 42 | "react-native-axios": "^0.17.1", |
47 | "react-native-elements": "^1.2.7", | 43 | "react-native-elements": "^1.2.7", |
48 | - "react-native-gesture-handler": "~1.3.0", | 44 | + "react-native-gesture-handler": "^1.5.2", |
49 | "react-native-reanimated": "~1.2.0", | 45 | "react-native-reanimated": "~1.2.0", |
50 | "react-native-screens": "~1.0.0-alpha.23", | 46 | "react-native-screens": "~1.0.0-alpha.23", |
51 | "react-native-stack": "^1.0.0-alpha11", | 47 | "react-native-stack": "^1.0.0-alpha11", |
... | @@ -58,7 +54,8 @@ npm manifest: | ... | @@ -58,7 +54,8 @@ npm manifest: |
58 | "devDependencies": { | 54 | "devDependencies": { |
59 | "babel-preset-expo": "^7.1.0" | 55 | "babel-preset-expo": "^7.1.0" |
60 | }, | 56 | }, |
61 | - "private": true | 57 | + "private": true, |
58 | + "version": "0.0.0" | ||
62 | } | 59 | } |
63 | 60 | ||
64 | yarn manifest: | 61 | yarn manifest: |
... | @@ -2793,6 +2790,11 @@ Lockfile: | ... | @@ -2793,6 +2790,11 @@ Lockfile: |
2793 | resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" | 2790 | resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" |
2794 | integrity sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE= | 2791 | integrity sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE= |
2795 | 2792 | ||
2793 | + hammerjs@^2.0.8: | ||
2794 | + version "2.0.8" | ||
2795 | + resolved "https://registry.yarnpkg.com/hammerjs/-/hammerjs-2.0.8.tgz#04ef77862cff2bb79d30f7692095930222bf60f1" | ||
2796 | + integrity sha1-BO93hiz/K7edMPdpIJWTAiK/YPE= | ||
2797 | + | ||
2796 | har-schema@^2.0.0: | 2798 | har-schema@^2.0.0: |
2797 | version "2.0.0" | 2799 | version "2.0.0" |
2798 | resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" | 2800 | resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" |
... | @@ -4778,14 +4780,15 @@ Lockfile: | ... | @@ -4778,14 +4780,15 @@ Lockfile: |
4778 | react-native-ratings "^6.3.0" | 4780 | react-native-ratings "^6.3.0" |
4779 | react-native-status-bar-height "^2.2.0" | 4781 | react-native-status-bar-height "^2.2.0" |
4780 | 4782 | ||
4781 | - react-native-gesture-handler@~1.3.0: | 4783 | + react-native-gesture-handler@^1.5.2: |
4782 | - version "1.3.0" | 4784 | + version "1.5.2" |
4783 | - resolved "https://registry.yarnpkg.com/react-native-gesture-handler/-/react-native-gesture-handler-1.3.0.tgz#d0386f565928ccc1849537f03f2e37fd5f6ad43f" | 4785 | + resolved "https://registry.yarnpkg.com/react-native-gesture-handler/-/react-native-gesture-handler-1.5.2.tgz#281111550bf1eee10b7feba5278d142169892731" |
4784 | - integrity sha512-ASRFIXBuKRvqlmwkWJhV8yP2dTpvcqVrLNpd7FKVBFHYWr6SAxjGyO9Ik8w1lAxDhMlRP2IcJ9p9eq5X2WWeLQ== | 4786 | + integrity sha512-Xp03dq4XYVTD0xmWx4DW4eX+ox1NQLjHmbykspTdS5FCNIVIOekVXRLFCw1698/v8dYUHApNo6K3s3BCD8fqPA== |
4785 | dependencies: | 4787 | dependencies: |
4788 | + hammerjs "^2.0.8" | ||
4786 | hoist-non-react-statics "^2.3.1" | 4789 | hoist-non-react-statics "^2.3.1" |
4787 | - invariant "^2.2.2" | 4790 | + invariant "^2.2.4" |
4788 | - prop-types "^15.5.10" | 4791 | + prop-types "^15.7.2" |
4789 | 4792 | ||
4790 | react-native-iphone-x-helper@^1.0.3: | 4793 | react-native-iphone-x-helper@^1.0.3: |
4791 | version "1.2.1" | 4794 | version "1.2.1" | ... | ... |
-
Please register or login to post a comment