Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
6,111 additions
and
6,605 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,50 @@ | ||
import React, { Component } from 'react' | ||
import { | ||
SafeAreaView, | ||
Platform, | ||
Dimensions, | ||
View, | ||
Text | ||
} from 'react-native' | ||
import Nexus from '@api/Nexus' | ||
import Container from '~/containers/Container' | ||
|
||
//////////////////////////////////////////////// | ||
// 디바이스 정보 로그. | ||
//////////////////////////////////////////////// | ||
|
||
const {width, height} = Dimensions.get('window') | ||
console.log('----------------------------') | ||
console.log('Device OS: ', Platform.OS) | ||
console.log('Device Width: ', width) | ||
console.log('Device Height: ', height) | ||
console.log('----------------------------') | ||
|
||
export default class App extends Component { | ||
constructor(props) { | ||
super(props) | ||
this.state = { | ||
isReadyAPI: false | ||
} | ||
Nexus.checkMarket((isReady) => { | ||
this.setState({ | ||
isReadyAPI: isReady | ||
}) | ||
}) | ||
} | ||
render() { | ||
if (!this.state.isReadyAPI) { | ||
return ( | ||
<View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}> | ||
<Text>Loading...</Text> | ||
</View> | ||
) | ||
} | ||
return ( | ||
<SafeAreaView style={{flex: 1}}> | ||
<Container /> | ||
</SafeAreaView> | ||
) | ||
} | ||
|
||
} | ||
import React, { Component } from 'react' | ||
import { | ||
SafeAreaView, | ||
Platform, | ||
Dimensions, | ||
View, | ||
Text | ||
} from 'react-native' | ||
import Nexus from '@api/Nexus' | ||
import Container from '~/containers/Container' | ||
|
||
//////////////////////////////////////////////// | ||
// 디바이스 정보 로그. | ||
//////////////////////////////////////////////// | ||
|
||
const {width, height} = Dimensions.get('window') | ||
console.log('----------------------------') | ||
console.log('Device OS: ', Platform.OS) | ||
console.log('Device Width: ', width) | ||
console.log('Device Height: ', height) | ||
console.log('----------------------------') | ||
|
||
export default class App extends Component { | ||
constructor(props) { | ||
super(props) | ||
this.state = { | ||
isReadyAPI: false | ||
} | ||
Nexus.checkMarket((isReady) => { | ||
this.setState({ | ||
isReadyAPI: isReady | ||
}) | ||
}) | ||
} | ||
render() { | ||
if (!this.state.isReadyAPI) { | ||
return ( | ||
<View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}> | ||
<Text>Loading...</Text> | ||
</View> | ||
) | ||
} | ||
return ( | ||
<SafeAreaView style={{flex: 1}}> | ||
<Container /> | ||
</SafeAreaView> | ||
) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
{ | ||
"expo": { | ||
"name": "mybit", | ||
"slug": "mybit", | ||
"privacy": "public", | ||
"sdkVersion": "32.0.0", | ||
"platforms": [ | ||
"ios", | ||
"android" | ||
], | ||
"version": "1.0.0", | ||
"orientation": "portrait", | ||
"icon": "./assets/icon.png", | ||
"splash": { | ||
"image": "./assets/splash.png", | ||
"resizeMode": "contain", | ||
"backgroundColor": "#ffffff" | ||
}, | ||
"updates": { | ||
"fallbackToCacheTimeout": 0 | ||
}, | ||
"assetBundlePatterns": [ | ||
"**/*" | ||
], | ||
"ios": { | ||
"supportsTablet": true | ||
} | ||
} | ||
{ | ||
"expo": { | ||
"name": "mybit", | ||
"slug": "mybit", | ||
"privacy": "public", | ||
"sdkVersion": "32.0.0", | ||
"platforms": [ | ||
"ios", | ||
"android" | ||
], | ||
"version": "1.0.0", | ||
"orientation": "portrait", | ||
"icon": "./assets/icon.png", | ||
"splash": { | ||
"image": "./assets/splash.png", | ||
"resizeMode": "contain", | ||
"backgroundColor": "#ffffff" | ||
}, | ||
"updates": { | ||
"fallbackToCacheTimeout": 0 | ||
}, | ||
"assetBundlePatterns": [ | ||
"**/*" | ||
], | ||
"ios": { | ||
"supportsTablet": true | ||
} | ||
} | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = function(api) { | ||
api.cache(true); | ||
return { | ||
presets: ['babel-preset-expo'], | ||
}; | ||
}; | ||
module.exports = function(api) { | ||
api.cache(true); | ||
return { | ||
presets: ['babel-preset-expo'], | ||
}; | ||
}; |
Oops, something went wrong.