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

tambah status bar

parent a6750ed3
...@@ -9,6 +9,9 @@ ...@@ -9,6 +9,9 @@
"android", "android",
"web" "web"
], ],
"androidStatusBar": {
"hidden":"true"
},
"version": "2.0.0", "version": "2.0.0",
"orientation": "portrait", "orientation": "portrait",
"icon": "./assets/excelso.png", "icon": "./assets/excelso.png",
......
...@@ -3141,6 +3141,11 @@ ...@@ -3141,6 +3141,11 @@
"lodash": "^4.17.15" "lodash": "^4.17.15"
} }
}, },
"expo-status-bar": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/expo-status-bar/-/expo-status-bar-1.0.0.tgz",
"integrity": "sha512-WxFqFk0AlPcfKFwJxYboUvo4D+WWyeGKU2XeIq3eMC6+IN4esBMvQ6VaR3u3oJCkOcjWyS7WPCeCLeCRZnwmmg=="
},
"expo-web-browser": { "expo-web-browser": {
"version": "8.0.0", "version": "8.0.0",
"resolved": "https://registry.npmjs.org/expo-web-browser/-/expo-web-browser-8.0.0.tgz", "resolved": "https://registry.npmjs.org/expo-web-browser/-/expo-web-browser-8.0.0.tgz",
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
"expo-location": "^8.0.0", "expo-location": "^8.0.0",
"expo-network": "^2.0.0", "expo-network": "^2.0.0",
"expo-permissions": "^8.0.0", "expo-permissions": "^8.0.0",
"expo-status-bar": "^1.0.0",
"i18n-js": "^3.5.1", "i18n-js": "^3.5.1",
"moment": "^2.25.3", "moment": "^2.25.3",
"native-base": "2.13.8", "native-base": "2.13.8",
......
...@@ -4,7 +4,7 @@ import * as Device from 'expo-device'; ...@@ -4,7 +4,7 @@ import * as Device from 'expo-device';
import * as Location from 'expo-location'; import * as Location from 'expo-location';
import * as Permissions from 'expo-permissions'; import * as Permissions from 'expo-permissions';
import * as React from 'react'; import * as React from 'react';
import { ActivityIndicator, Alert, Dimensions, ScrollView, StyleSheet, Text, TouchableOpacity, View, SafeAreaView, StatusBar } from 'react-native'; import { ActivityIndicator, Alert, Dimensions, ScrollView, StyleSheet, Text, TouchableOpacity, View, SafeAreaView,StatusBar } from 'react-native';
import { SliderBox } from "react-native-image-slider-box"; import { SliderBox } from "react-native-image-slider-box";
import { Card } from 'react-native-shadow-cards'; import { Card } from 'react-native-shadow-cards';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
...@@ -14,6 +14,7 @@ import CheckVersion from '../function/CheckVersion'; ...@@ -14,6 +14,7 @@ import CheckVersion from '../function/CheckVersion';
import ActionType from '../redux/globalActionType'; import ActionType from '../redux/globalActionType';
import Toast from 'react-native-tiny-toast'; import Toast from 'react-native-tiny-toast';
import i18n from 'i18n-js'; import i18n from 'i18n-js';
// import { StatusBar } from 'expo-status-bar';
let version = info.expo.version let version = info.expo.version
let buildNumber = info.expo.android.versionCode let buildNumber = info.expo.android.versionCode
...@@ -228,15 +229,12 @@ class Home extends React.Component { ...@@ -228,15 +229,12 @@ class Home extends React.Component {
} }
render() { render() {
// console.log(this.props.in_payment)
return ( return (
<View style={styles.container}> <View style={styles.container}>
{/* <StatusBar hidden={true} /> */} <StatusBar />
<ScrollView> <ScrollView>
<View style={{ flex: 6 }}> <View style={{ flex: 6 }}>
<View style={styles.header}> <View style={styles.header}>
{/* <StatusBar barStyle='dark-content' /> */}
{/* <Text style={styles.titleText}>{i18n.t('register')}</Text> */}
<View style={{ flex: 1, alignItems: 'flex-end' }}> <View style={{ flex: 1, alignItems: 'flex-end' }}>
<Text style={styles.titleText}>{i18n.t('promotion')}</Text> <Text style={styles.titleText}>{i18n.t('promotion')}</Text>
</View> </View>
......
...@@ -298,7 +298,7 @@ class MenuSelection extends React.Component { ...@@ -298,7 +298,7 @@ class MenuSelection extends React.Component {
render() { render() {
return ( return (
<View style={styles.container}> <View style={styles.container}>
<StatusBar hidden={true} /> <StatusBar/>
<View style={{ flex: 0.5, height: 50, flexDirection: 'row' }}> <View style={{ flex: 0.5, height: 50, flexDirection: 'row' }}>
<FlatList horizontal={true} style={{ flexDirection: 'row' }} <FlatList horizontal={true} style={{ flexDirection: 'row' }}
showsHorizontalScrollIndicator={false} showsHorizontalScrollIndicator={false}
......
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