Commit f3d4bafb authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo

bbb

parent 3cfeaef7
{ {
"expo": { "expo": {
"name": "Excelso_update v1. pagi.13.05.2020", "name": "Excelso_update v1. siang.13.05.2020",
"slug": "excelso-pro", "slug": "excelso-pro",
"privacy": "public", "privacy": "public",
"sdkVersion": "36.0.0", "sdkVersion": "36.0.0",
......
...@@ -6278,9 +6278,9 @@ ...@@ -6278,9 +6278,9 @@
} }
}, },
"react-native-device-info": { "react-native-device-info": {
"version": "5.5.3", "version": "5.5.7",
"resolved": "https://registry.npmjs.org/react-native-device-info/-/react-native-device-info-5.5.3.tgz", "resolved": "https://registry.npmjs.org/react-native-device-info/-/react-native-device-info-5.5.7.tgz",
"integrity": "sha512-bzUVTPHca+FfNco1qaOM1+idoeII8zdpGRsR+RK+DWhwp9utHZWfbkonZZ9XFm/U+i3mirNxt6oaKV+vUMjMzg==" "integrity": "sha512-0021blhx/N1+mWQPOW3QAMWhOjYdG0uC5n+P6sMXZD3pF9aiIeCKuw4JpBpfNXXpUmDmQ7qWgHZUZO7JBMRijw=="
}, },
"react-native-drawer": { "react-native-drawer": {
"version": "2.5.1", "version": "2.5.1",
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
"react-native-check-box": "^2.1.7", "react-native-check-box": "^2.1.7",
"react-native-date-picker": "^2.7.7", "react-native-date-picker": "^2.7.7",
"react-native-datepicker": "^1.7.2", "react-native-datepicker": "^1.7.2",
"react-native-device-info": "^5.5.3", "react-native-device-info": "^5.5.7",
"react-native-elements": "^1.2.7", "react-native-elements": "^1.2.7",
"react-native-form-select-picker": "0.0.7", "react-native-form-select-picker": "0.0.7",
"react-native-fs": "^2.16.6", "react-native-fs": "^2.16.6",
......
...@@ -12,8 +12,13 @@ import * as Permissions from 'expo-permissions'; ...@@ -12,8 +12,13 @@ import * as Permissions from 'expo-permissions';
import * as Device from 'expo-device'; import * as Device from 'expo-device';
import ActionType from '../redux/globalActionType'; import ActionType from '../redux/globalActionType';
import session from '../function/session'; import session from '../function/session';
import Constants from 'expo-constants';
import info from '../app.json';
let version = info.expo.version
let buildNumber = info.expo.android.versionCode
class Home extends React.Component { class Home extends React.Component {
constructor(props) { constructor(props) {
...@@ -31,6 +36,7 @@ class Home extends React.Component { ...@@ -31,6 +36,7 @@ class Home extends React.Component {
} }
componentDidMount() { componentDidMount() {
console.log("INI BUILD VERSION : "+ Constants.nativeBuildVersio)
this._account(); this._account();
this._getPermissions() this._getPermissions()
this._renderCarousell() this._renderCarousell()
...@@ -50,7 +56,7 @@ class Home extends React.Component { ...@@ -50,7 +56,7 @@ class Home extends React.Component {
componentWillUnmount() { componentWillUnmount() {
this._unsubscribe(); this._unsubscribe();
} }
_getPermissions = async () => { _getPermissions = async () => {
let { status } = await Permissions.askAsync(Permissions.LOCATION); let { status } = await Permissions.askAsync(Permissions.LOCATION);
if (status !== 'granted') { if (status !== 'granted') {
...@@ -294,7 +300,9 @@ class Home extends React.Component { ...@@ -294,7 +300,9 @@ class Home extends React.Component {
<TouchableOpacity style={styles.submitUpgradePemium} activeOpacity={.5} onPress={this.onPress}> <TouchableOpacity style={styles.submitUpgradePemium} activeOpacity={.5} onPress={this.onPress}>
<Text style={{ textAlign: 'center', bottom: 5, color: 'white' }}>TOP BALANCE </Text> <Text style={{ textAlign: 'center', bottom: 5, color: 'white' }}>TOP BALANCE </Text>
</TouchableOpacity> </TouchableOpacity>
<Text> V.1234. 13 May 2020 </Text>
<Text> App version : {version} </Text>
<Text> Expo build version : {buildNumber} </Text>
<View style={{ height: 60 }}></View> <View style={{ height: 60 }}></View>
</View> </View>
</View> </View>
......
...@@ -397,7 +397,7 @@ class ShoppingCart extends React.Component { ...@@ -397,7 +397,7 @@ class ShoppingCart extends React.Component {
kasproPoint: kaspro_point.replace(/,/g, '') kasproPoint: kaspro_point.replace(/,/g, '')
}) })
// console.log(this.state.kasproBalance, this.state.kasproPoint) console.log(this.state.kasproBalance, this.state.kasproPoint)
}).catch(error => { }).catch(error => {
const { navigation } = this.props const { navigation } = this.props
let response = error.response.data let response = error.response.data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment