Commit 93540104 authored by didam's avatar didam

didam

parent c3380db2
......@@ -90,12 +90,14 @@ apply from: "../../node_modules/react-native/react.gradle"
* Upload all the APKs to the Play Store and people will download
* the correct one based on the CPU architecture of their device.
*/
def enableSeparateBuildPerCPUArchitecture = true
def enableSeparateBuildPerCPUArchitecture = false
// def enableSeparateBuildPerCPUArchitecture = true
/**
* Run Proguard to shrink the Java bytecode in release builds.
*/
def enableProguardInReleaseBuilds = true
def enableProguardInReleaseBuilds = false
// def enableProguardInReleaseBuilds = true
/**
* The preferred build flavor of JavaScriptCore.
......@@ -139,7 +141,8 @@ android {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a", "x86"
include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
// include "armeabi-v7a", "x86"
}
}
signingConfigs {
......@@ -158,7 +161,7 @@ android {
// see https://facebook.github.io/react-native/docs/signed-apk-android.
signingConfig signingConfigs.release
minifyEnabled enableProguardInReleaseBuilds
shrinkResources true
// shrinkResources true
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
// release {
......
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ad1appraisal_mobile">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
......
import React, { Component } from 'react';
import { Container, Text } from 'native-base';
import { View } from 'react-native';
class History extends Component {
render() {
return (
<Container style={{alignItems:'center', justifyContent: 'center',}}>
<Text>Ini history</Text>
<Container>
<View style={{height: 50, width: '100%', backgroundColor: '#e4b300', zIndex: 1}}>
<View style={{alignItems:'center', justifyContent: 'center',}}>
<Text>History</Text>
</View>
<View style={{flexDirection: 'row' ,justifyContent: 'space-evenly',}}>
<View style={{height: 70, width: 70, borderRadius: 70, backgroundColor: 'transparent', marginTop: 40, zIndex: 1}}/>
<View style={{height: 70, width: 70, borderRadius: 70, backgroundColor: 'transparent', marginTop: 40, zIndex: 1}}/>
<View style={{height: 70, width: 70, borderRadius: 70, backgroundColor: 'transparent', marginTop: 40, zIndex: 1}}/>
{/* <View style={{height: 70, width: 70, borderRadius: 70, backgroundColor: 'transparent', marginTop: 40, zIndex: 1}}/> */}
<View style={{height: 50, width: 50, borderRadius: 50, backgroundColor: 'red', marginTop: 35, zIndex: 2}}/>
</View>
</View>
</Container>
);
}
......
......@@ -639,7 +639,7 @@ export default class sampleMenuAppraisal3 extends Component {
progress={!this.state.progress}
onPress={next => {
setTimeout(() => {
null
this.props.navigation.navigate('Appraisal')
next()
}, 300);
}}
......
......@@ -17,8 +17,8 @@ export default class sampleMenuPenerimaan extends Component {
datePenerimaan: M(new Date()).format('DD-MMM-YYYY'),
checked: 'first',
progress: false,
kodeWerehouse: '',
namaWerehouse: '',
kodeWerehouse: '#daridepan',
namaWerehouse: '#daridepan',
kodeRemote: '',
namaRemote: '',
tanggalPenerimaan: '',
......@@ -85,7 +85,7 @@ export default class sampleMenuPenerimaan extends Component {
<View style={styles.viewInputDisable}>
<TextInput
style={styles.textInput}
value={'Test'}
value={'#dropdown'}
editable={false}
/>
</View>
......@@ -98,7 +98,7 @@ export default class sampleMenuPenerimaan extends Component {
<View style={styles.viewInputDisable}>
<TextInput
style={styles.textInput}
value={'Test'}
value={'#autofill'}
editable={false}
/>
</View>
......@@ -111,7 +111,7 @@ export default class sampleMenuPenerimaan extends Component {
<View style={styles.viewInputDisable}>
<TextInput
style={styles.textInput}
value={'Test'}
value={'#livesearch'}
editable={false}
/>
</View>
......@@ -124,7 +124,7 @@ export default class sampleMenuPenerimaan extends Component {
<View style={styles.viewInputDisable}>
<TextInput
style={styles.textInput}
value={'Test'}
value={'#autofill'}
editable={false}
/>
</View>
......@@ -137,7 +137,7 @@ export default class sampleMenuPenerimaan extends Component {
<View style={styles.viewInputDisable}>
<TextInput
style={styles.textInput}
value={'Test'}
value={'#autofill'}
editable={false}
/>
</View>
......
......@@ -250,7 +250,7 @@ export default class sampleMenuPenerimaan3 extends Component {
progress={!this.state.progress}
onPress={next => {
setTimeout(() => {
null
this.props.navigation.navigate('Penerimaan')
next()
}, 300);
}}
......
const Constant = {
BASE_URL : 'http://103.44.149.207:8080/projectmanagement/public/mobile/',
BASE_URL : 'https://103.44.149.207:8080/projectmanagement/public/mobile/',
//USER
TOKEN: 'TOKEN',
......
......@@ -2,7 +2,7 @@ import React, { Component } from 'react';
import { Container } from 'native-base';
import LinearGradient from 'react-native-linear-gradient';
import Colors from './library/colors';
import { View, Text, TextInput, ImageBackground, StyleSheet, Keyboard, Image} from 'react-native';
import { View, Text, TextInput, ImageBackground, StyleSheet, Keyboard, Image, TouchableOpacity} from 'react-native';
import AwesomeButton from 'react-native-really-awesome-button';
import { Input, Icon } from 'react-native-elements';
import FontAwesome5Icon from 'react-native-vector-icons/FontAwesome5';
......@@ -25,18 +25,18 @@ class LoginScreen extends Component {
}
handleLogin(next) {
api.create().login({
username: this.state.username,
password: this.state.password
}).then((Response) => {
// api.create().login({
// username: this.state.username,
// password: this.state.password
// }).then((Response) => {
// if (Response.data.status == 'success') {
next();
if (Response.data.status == 'success') {
this.navigateToLogin()
} else {
alert(Response.data.message)
}
})
// } else {
// next();
// alert(Response.data.message)
// }
// })
}
navigateToLogin() {
......@@ -56,7 +56,7 @@ class LoginScreen extends Component {
<View style={{height: '50%', alignItems:'center', justifyContent: 'flex-end',}}>
<Image source={Images.LogoApps} style={{marginBottom: 65, width: 125, height: 125}}/>
</View>
<View style={{paddingHorizontal: 50, paddingTop: 35, height: '50%'}}>
<TouchableOpacity onPress={Keyboard.dismiss} activeOpacity={.9} style={{paddingHorizontal: 50, paddingTop: 35, height: '50%'}}>
<View style={{borderRadius: 25, paddingHorizontal: 20, alignItems:'center', flexDirection:'row', width: '100%', backgroundColor:'rgba(237, 237, 237, .5)', }}>
<FontAwesome5Icon name={'user-alt'} color={'white'} size={18} />
<TextInput
......@@ -64,12 +64,15 @@ class LoginScreen extends Component {
placeholderTextColor={'#fff'}
value={this.state.username}
onChangeText={(username) => this.setState({username})}
blurOnSubmit
onSubmitEditing={() => this.password.focus()}
style={{marginLeft: 10, width: '80%', color: '#fff'}}
/>
</View>
<View style={{marginTop: 20, marginBottom: 75, borderRadius: 25, paddingHorizontal: 20, alignItems:'center', flexDirection:'row', width: '100%', backgroundColor:'rgba(237, 237, 237, .5)', }}>
<Fontisto name={'locked'} color={'white'} size={18} />
<TextInput
ref={(ref) => { this.password = ref; }}
placeholder={'Password'}
placeholderTextColor={'#fff'}
secureTextEntry={!this.state.visiblePw}
......@@ -95,13 +98,14 @@ class LoginScreen extends Component {
style={{alignSelf:'center'}}
onPress={next => {
/** Do Something **/
Keyboard.dismiss
this.handleLogin(next)
}}
>
<Text style={{color: Colors.blackBasic, fontWeight: 'bold'}}> Login </Text>
</AwesomeButton>
</View>
</View>
</TouchableOpacity>
{/* <View style={{alignItems:'center', justifyContent: 'center', width: '70%', alignSelf:'center'}}> */}
{/* </View> */}
......
......@@ -84,6 +84,7 @@ export default TabNavigator = createBottomTabNavigator(
inactiveTintColor: 'gray',
activeTintColor: '#e4b300',
style: {
borderTopColor: '#e6e6e6',
backgroundColor: '#FFFFFF',
width: '100%',
},
......
......@@ -20,7 +20,6 @@
"react": "16.9.0",
"react-moment": "^0.9.7",
"react-native": "0.61.5",
"react-native-base": "^1.1.0",
"react-native-device-info": "^5.5.3",
"react-native-document-picker": "^3.2.4",
"react-native-elements": "^1.2.7",
......
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