Commit c3380db2 authored by didam's avatar didam
parents b1cc80c7 6d68b614
...@@ -50,7 +50,7 @@ export default class sampleMenuAppraisal extends Component { ...@@ -50,7 +50,7 @@ export default class sampleMenuAppraisal extends Component {
render() { render() {
return ( return (
<Container style={{ flex: 1, paddingHorizontal: 20, paddingBottom: 20 }}> <Container style={{ flex: 1, paddingHorizontal: 20}}>
<ScrollView <ScrollView
showsVerticalScrollIndicator={false} showsVerticalScrollIndicator={false}
> >
...@@ -852,8 +852,8 @@ export default class sampleMenuAppraisal extends Component { ...@@ -852,8 +852,8 @@ export default class sampleMenuAppraisal extends Component {
</ListItem> </ListItem>
</CollapseBody> </CollapseBody>
</Collapse> </Collapse>
</ScrollView>
<View style={{ width: '100%', justifyContent: 'flex-end', marginTop: 20, alignSelf: 'center', alignContent: 'flex-end', alignItems: 'center' }}> <View style={{ width: '100%', justifyContent: 'flex-end', marginTop: 20, alignSelf: 'center', alignContent: 'flex-end', alignItems: 'center', marginBottom: 20 }}>
<AwesomeButton <AwesomeButton
backgroundColor={Colors.yellowBasic} backgroundColor={Colors.yellowBasic}
backgroundShadow={'#DBDBDB'} backgroundShadow={'#DBDBDB'}
...@@ -876,6 +876,7 @@ export default class sampleMenuAppraisal extends Component { ...@@ -876,6 +876,7 @@ export default class sampleMenuAppraisal extends Component {
<Text style={{ color: 'black', fontWeight: '700' }}>Berikutnya</Text> <Text style={{ color: 'black', fontWeight: '700' }}>Berikutnya</Text>
</AwesomeButton> </AwesomeButton>
</View> </View>
</ScrollView>
</Container> </Container>
) )
} }
......
...@@ -28,8 +28,8 @@ export default class sampleMenuAppraisal3 extends Component { ...@@ -28,8 +28,8 @@ export default class sampleMenuAppraisal3 extends Component {
} }
render() { render() {
return ( return (
<Container style={{ flex: 1, paddingHorizontal: 10, paddingBottom: 20 }}> <Container style={{ flex: 1, paddingHorizontal: 10 }}>
<ScrollView showsVerticalScrollIndicator={false}> <ScrollView showsVerticalScrollIndicator={false} >
<View style={{ padding: 20, justifyContent: 'center', width: '100%' }}> <View style={{ padding: 20, justifyContent: 'center', width: '100%' }}>
<Text style={{ alignSelf: 'center', fontSize: 18, fontWeight: 'bold' }}>Appraisal</Text> <Text style={{ alignSelf: 'center', fontSize: 18, fontWeight: 'bold' }}>Appraisal</Text>
...@@ -624,32 +624,32 @@ export default class sampleMenuAppraisal3 extends Component { ...@@ -624,32 +624,32 @@ export default class sampleMenuAppraisal3 extends Component {
{/* <View style={{ flexDirection: 'row', justifyContent: 'space-between', paddingVertical: 2.5 }}> {/* <View style={{ flexDirection: 'row', justifyContent: 'space-between', paddingVertical: 2.5 }}>
</View> */} </View> */}
<View style={{ width: '100%', justifyContent: 'flex-end', marginTop: 20, alignSelf: 'center', alignContent: 'flex-end', alignItems: 'center', marginBottom: 20 }}>
<AwesomeButton
backgroundColor={Colors.yellowBasic}
backgroundShadow={'#DBDBDB'}
backgroundPlaceholder={null}
backgroundDarker={'#FFED75'}
backgroundProgress={null}
width={120}
height={45}
raiseLevel={5}
borderRadius={10}
progressLoadingTime={1000}
progress={!this.state.progress}
onPress={next => {
setTimeout(() => {
null
next()
}, 300);
}}
>
<Text style={{ color: 'black', fontWeight: '700' }}>Berikutnya</Text>
</AwesomeButton>
</View>
</ScrollView> </ScrollView>
<View style={{ width: '100%', justifyContent: 'flex-end', marginTop: 20, alignSelf: 'center', alignContent: 'flex-end', alignItems: 'center' }}>
<AwesomeButton
backgroundColor={Colors.yellowBasic}
backgroundShadow={'#DBDBDB'}
backgroundPlaceholder={null}
backgroundDarker={'#FFED75'}
backgroundProgress={null}
width={120}
height={45}
raiseLevel={5}
borderRadius={10}
progressLoadingTime={1000}
progress={!this.state.progress}
onPress={next => {
setTimeout(() => {
null
next()
}, 300);
}}
>
<Text style={{ color: 'black', fontWeight: '700' }}>Berikutnya</Text>
</AwesomeButton>
</View>
</Container> </Container>
) )
} }
......
import React, { Component } from 'react' import React, { Component } from 'react'
import { Text, View, ScrollView, TouchableOpacity } from 'react-native' import { Text, View, ScrollView, TouchableOpacity } from 'react-native'
import { Container } from 'native-base' import { Container, Fab, Icon } from 'native-base'
import Next from 'react-native-vector-icons/MaterialIcons' import Next from 'react-native-vector-icons/MaterialIcons'
export default class Penerimaan extends Component { export default class Penerimaan extends Component {
...@@ -65,6 +65,16 @@ export default class Penerimaan extends Component { ...@@ -65,6 +65,16 @@ export default class Penerimaan extends Component {
})} })}
</ScrollView> </ScrollView>
<Fab
active={true}
direction="up"
containerStyle={{}}
style={{ backgroundColor: '#e4b300' }}
position="bottomRight"
onPress={() => this.props.navigation.navigate('MenuPenerimaan')}
>
<Icon name="add" />
</Fab>
</Container> </Container>
) )
} }
......
...@@ -32,12 +32,12 @@ export default class sampleMenuPenerimaan extends Component { ...@@ -32,12 +32,12 @@ export default class sampleMenuPenerimaan extends Component {
// alert(this.state.date) // alert(this.state.date)
} }
handlePenerimaanDate(date){ handlePenerimaanDate(date) {
var datePenerimaan = M(date).format('DD-MMM-YYYY') var datePenerimaan = M(date).format('DD-MMM-YYYY')
this.setState({ datePenerimaan, isDateTimePickerVisiblePenerimaan: false }) this.setState({ datePenerimaan, isDateTimePickerVisiblePenerimaan: false })
} }
handleUpdateDate(date){ handleUpdateDate(date) {
var dateUpdate = M(date).format('DD-MMM-YYYY') var dateUpdate = M(date).format('DD-MMM-YYYY')
this.setState({ dateUpdate, isDateTimePickerVisible: false }) this.setState({ dateUpdate, isDateTimePickerVisible: false })
} }
...@@ -59,17 +59,17 @@ export default class sampleMenuPenerimaan extends Component { ...@@ -59,17 +59,17 @@ export default class sampleMenuPenerimaan extends Component {
stepIndicatorSize: 20, stepIndicatorSize: 20,
currentStepIndicatorSize: 20, currentStepIndicatorSize: 20,
currentStepStrokeWidth: 1, currentStepStrokeWidth: 1,
stepStrokeCurrentColor: "#FBB040", stepStrokeCurrentColor: Colors.yellowStatusBar,
stepIndicatorCurrentColor: 'white', stepIndicatorCurrentColor: 'white',
stepIndicatorLabelCurrentColor: "#FBB040", stepIndicatorLabelCurrentColor: Colors.yellowStatusBar,
currentStepLabelColor: "#FBB040", currentStepLabelColor: Colors.yellowStatusBar,
stepStrokeUnFinishedColor: "#FBB040", stepStrokeUnFinishedColor: Colors.yellowStatusBar,
separatorUnFinishedColor: '#DEE1E5', separatorUnFinishedColor: '#DEE1E5',
stepIndicatorUnFinishedColor: '#DEE1E5', stepIndicatorUnFinishedColor: '#DEE1E5',
stepIndicatorLabelUnFinishedColor: '#ffffff', stepIndicatorLabelUnFinishedColor: '#ffffff',
labelColor: '#E6E6E6', labelColor: '#E6E6E6',
stepIndicatorFinishedColor: "#FBB040", stepIndicatorFinishedColor: Colors.yellowStatusBar,
separatorFinishedColor: "#FBB040", separatorFinishedColor: Colors.yellowStatusBar,
}} }}
stepCount={Array.labelStep.length} stepCount={Array.labelStep.length}
/> />
...@@ -249,7 +249,7 @@ export default class sampleMenuPenerimaan extends Component { ...@@ -249,7 +249,7 @@ export default class sampleMenuPenerimaan extends Component {
</ScrollView> </ScrollView>
<View style={{ width: '100%', justifyContent: 'flex-end', marginTop: 20, alignSelf: 'center', alignContent: 'flex-end', alignItems: 'center' }}> <View style={{ width: '100%', justifyContent: 'flex-end', marginTop: 20, alignSelf: 'center', alignContent: 'flex-end', alignItems: 'center' }}>
<AwesomeButton <AwesomeButton
backgroundColor={Colors.yellowBasic} backgroundColor={Colors.yellowBasic}
backgroundShadow={'#DBDBDB'} backgroundShadow={'#DBDBDB'}
backgroundPlaceholder={null} backgroundPlaceholder={null}
...@@ -261,7 +261,7 @@ export default class sampleMenuPenerimaan extends Component { ...@@ -261,7 +261,7 @@ export default class sampleMenuPenerimaan extends Component {
borderRadius={10} borderRadius={10}
progressLoadingTime={1000} progressLoadingTime={1000}
progress={!this.state.progress} progress={!this.state.progress}
onPress={next => { onPress={next => {
setTimeout(() => { setTimeout(() => {
this.props.navigation.navigate('MenuPenerimaan2') this.props.navigation.navigate('MenuPenerimaan2')
next() next()
......
...@@ -37,17 +37,17 @@ export default class sampleMenuPenerimaan2 extends Component { ...@@ -37,17 +37,17 @@ export default class sampleMenuPenerimaan2 extends Component {
stepIndicatorSize: 20, stepIndicatorSize: 20,
currentStepIndicatorSize: 20, currentStepIndicatorSize: 20,
currentStepStrokeWidth: 1, currentStepStrokeWidth: 1,
stepStrokeCurrentColor: "#FBB040", stepStrokeCurrentColor: Colors.yellowStatusBar,
stepIndicatorCurrentColor: 'white', stepIndicatorCurrentColor: 'white',
stepIndicatorLabelCurrentColor: "#FBB040", stepIndicatorLabelCurrentColor: Colors.yellowStatusBar,
currentStepLabelColor: "#FBB040", currentStepLabelColor: Colors.yellowStatusBar,
stepStrokeUnFinishedColor: "#FBB040", stepStrokeUnFinishedColor: Colors.yellowStatusBar,
separatorUnFinishedColor: '#DEE1E5', separatorUnFinishedColor: '#DEE1E5',
stepIndicatorUnFinishedColor: '#DEE1E5', stepIndicatorUnFinishedColor: '#DEE1E5',
stepIndicatorLabelUnFinishedColor: '#ffffff', stepIndicatorLabelUnFinishedColor: '#ffffff',
labelColor: '#E6E6E6', labelColor: '#E6E6E6',
stepIndicatorFinishedColor: "#FBB040", stepIndicatorFinishedColor: Colors.yellowStatusBar,
separatorFinishedColor: "#FBB040", separatorFinishedColor: Colors.yellowStatusBar,
}} }}
stepCount={Array.labelStep.length} stepCount={Array.labelStep.length}
/> />
......
...@@ -9,6 +9,7 @@ import { Array } from '../../../library/Array'; ...@@ -9,6 +9,7 @@ import { Array } from '../../../library/Array';
import AwesomeButton from "react-native-really-awesome-button"; import AwesomeButton from "react-native-really-awesome-button";
import DocumentPicker from 'react-native-document-picker' import DocumentPicker from 'react-native-document-picker'
import RNFetchBlob from 'rn-fetch-blob' import RNFetchBlob from 'rn-fetch-blob'
import Colors from '../../../library/colors';
export default class sampleMenuPenerimaan3 extends Component { export default class sampleMenuPenerimaan3 extends Component {
constructor(props) { constructor(props) {
...@@ -89,7 +90,7 @@ export default class sampleMenuPenerimaan3 extends Component { ...@@ -89,7 +90,7 @@ export default class sampleMenuPenerimaan3 extends Component {
<Modal <Modal
visible={this.state.viewerMesin} visible={this.state.viewerMesin}
transparent={true} transparent={true}
> >
<View style={{ height: '85%' }}> <View style={{ height: '85%' }}>
<ImageViewer <ImageViewer
...@@ -115,17 +116,17 @@ export default class sampleMenuPenerimaan3 extends Component { ...@@ -115,17 +116,17 @@ export default class sampleMenuPenerimaan3 extends Component {
stepIndicatorSize: 20, stepIndicatorSize: 20,
currentStepIndicatorSize: 20, currentStepIndicatorSize: 20,
currentStepStrokeWidth: 1, currentStepStrokeWidth: 1,
stepStrokeCurrentColor: "#FBB040", stepStrokeCurrentColor: Colors.yellowStatusBar,
stepIndicatorCurrentColor: 'white', stepIndicatorCurrentColor: 'white',
stepIndicatorLabelCurrentColor: "#FBB040", stepIndicatorLabelCurrentColor: Colors.yellowStatusBar,
currentStepLabelColor: "#FBB040", currentStepLabelColor: Colors.yellowStatusBar,
stepStrokeUnFinishedColor: "#FBB040", stepStrokeUnFinishedColor: Colors.yellowStatusBar,
separatorUnFinishedColor: '#DEE1E5', separatorUnFinishedColor: '#DEE1E5',
stepIndicatorUnFinishedColor: '#DEE1E5', stepIndicatorUnFinishedColor: '#DEE1E5',
stepIndicatorLabelUnFinishedColor: '#ffffff', stepIndicatorLabelUnFinishedColor: '#ffffff',
labelColor: '#E6E6E6', labelColor: '#E6E6E6',
stepIndicatorFinishedColor: "#FBB040", stepIndicatorFinishedColor: Colors.yellowStatusBar,
separatorFinishedColor: "#FBB040", separatorFinishedColor: Colors.yellowStatusBar,
}} }}
stepCount={Array.labelStep.length} stepCount={Array.labelStep.length}
/> />
...@@ -236,23 +237,25 @@ export default class sampleMenuPenerimaan3 extends Component { ...@@ -236,23 +237,25 @@ export default class sampleMenuPenerimaan3 extends Component {
<View style={{ width: '100%', justifyContent: 'flex-end', marginTop: 20, alignSelf: 'center', alignContent: 'flex-end', alignItems: 'center' }}> <View style={{ width: '100%', justifyContent: 'flex-end', marginTop: 20, alignSelf: 'center', alignContent: 'flex-end', alignItems: 'center' }}>
<AwesomeButton <AwesomeButton
backgroundColor='#fcc000' backgroundColor={Colors.yellowBasic}
backgroundShadow={null} backgroundShadow={'#DBDBDB'}
backgroundPlaceholder={null} backgroundPlaceholder={null}
backgroundDarker={'#e0ac02'} backgroundDarker={'#FFED75'}
backgroundProgress={null} backgroundProgress={null}
width={120} width={120}
height={45} height={45}
raiseLevel={5} raiseLevel={5}
borderRadius={10} borderRadius={10}
progressLoadingTime={1000}
progress={!this.state.progress} progress={!this.state.progress}
onPress={() => { onPress={next => {
/** Do Something **/ setTimeout(() => {
this.props.navigation.navigate('MenuPenerimaan3') null
null next()
}, 300);
}} }}
> >
<Text style={{ color: 'black', fontWeight: '700' }}>Berikutnya</Text> <Text style={{ color: 'black', fontWeight: '700' }}>Terima</Text>
</AwesomeButton> </AwesomeButton>
</View> </View>
</Container> </Container>
......
import React, { Component } from 'react'; import React, { Component } from 'react';
import { Container, Text } from 'native-base'; import { Container, Text, View } from 'native-base';
import LinearGradient from 'react-native-linear-gradient';
import Colors from '../../library/colors';
import FontAwesome5 from 'react-native-vector-icons/FontAwesome5'
import MaterialIcons from 'react-native-vector-icons/MaterialIcons'
import { Image } from 'react-native';
import Images from '../../library/images';
class Profile extends Component { class Profile extends Component {
constructor(props) {
super(props)
this.state = {
arrayDummy: [
{ image: 'user-alt', title: 'DADANG TUKIMIN' },
{ image: 'phone', title: '+62 8123192381' },
{ image: 'mail-bulk', title: 'datuk@gmail.com' },
{ image: 'lock', title: '*******' },
// {image: Images.MenuProfile, title: 'DADANG TUKIMIN' },
]
}
}
render() { render() {
return ( return (
<Container style={{alignItems:'center', justifyContent: 'center',}}> <Container style={{ alignItems: 'center' }}>
<Text>Ini Profile</Text> <LinearGradient style={{ height: '25%', width: '110%', borderBottomLeftRadius: 300, borderBottomRightRadius: 300, alignItems: 'center' }} colors={['#e4b300', '#e4b300']} angle={155} useAngle>
<Text style={{ marginTop: 50, fontSize: 20, fontWeight: 'bold' }}>DADANG TUKIMIN</Text>
<View style={{ width: 130, height: 130, borderRadius: 400, backgroundColor: '#fff', marginTop: 35 }} >
<Image source={Images.UserIcons} style={{ width: '100%', height: '100%'}} />
</View>
</LinearGradient>
<View style={{ marginTop: 100 }}>
{this.state.arrayDummy.map((item) => {
return (
<View style={{ borderBottomColor: '#e4b300', borderWidth: 1, width: '100%', height: 50, borderTopColor: 'transparent', borderLeftColor: 'transparent', borderRightColor: 'transparent', justifyContent: 'center', paddingHorizontal: 20 }}>
<View style={{ flexDirection: 'row' }}>
<View style={{ width: '15%' }}>
<FontAwesome5 name={item.image} size={20} />
</View>
{item.image === 'lock' ?
<View style={{ justifyContent: 'space-between', width: '85%', flexDirection: 'row' }}>
<Text style={{ alignSelf: 'center'}}>{item.title}</Text>
<MaterialIcons name='navigate-next' size={26} />
</View>
:
<View style={{ justifyContent: 'center', width: '85%' }}>
<Text>{item.title}</Text>
</View>
}
</View>
</View>
)
})}
</View>
</Container> </Container>
); );
} }
......
...@@ -2,6 +2,7 @@ const Colors = { ...@@ -2,6 +2,7 @@ const Colors = {
yellowBasic: '#ffdd00', yellowBasic: '#ffdd00',
blackBasic: '#010101', blackBasic: '#010101',
dijjahYellow: '#fcc000', dijjahYellow: '#fcc000',
yellowStatusBar: '#e4b300'
} }
export default Colors; export default Colors;
\ No newline at end of file
...@@ -23,6 +23,7 @@ const Images = { ...@@ -23,6 +23,7 @@ const Images = {
MenuProfile: require('../assets/Icon/MenuProfile.png'), MenuProfile: require('../assets/Icon/MenuProfile.png'),
MenuProfile1: require('../assets/Icon/MenuProfile–1.png'), MenuProfile1: require('../assets/Icon/MenuProfile–1.png'),
ButtonBack: require('../assets/Icon/ButtonBack.png'), ButtonBack: require('../assets/Icon/ButtonBack.png'),
UserIcons: require('../assets/Icon/user-icon.png'),
} }
......
...@@ -4,7 +4,7 @@ import React from 'react' ...@@ -4,7 +4,7 @@ import React from 'react'
import { createAppContainer } from 'react-navigation'; import { createAppContainer } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack'; import { createStackNavigator } from 'react-navigation-stack';
import { fromLeft, fromTop, flipY, fadeOut, fromRight, fromBottom } from 'react-navigation-transitions'; import { fromLeft, fromTop, flipY, fadeOut, fromRight, fromBottom } from 'react-navigation-transitions';
import { headerStyle, headerTitleStyle, headerBgStyle, headerRightStyle} from './navStyle' import { headerStyle, headerTitleStyle, headerBgStyle, headerRightStyle } from './navStyle'
//Screen //Screen
import SplashScreen from '../splashScreen' import SplashScreen from '../splashScreen'
...@@ -25,43 +25,46 @@ import IconBack from 'react-native-vector-icons/MaterialIcons' ...@@ -25,43 +25,46 @@ import IconBack from 'react-native-vector-icons/MaterialIcons'
import Ionicons from 'react-native-vector-icons/Ionicons' import Ionicons from 'react-native-vector-icons/Ionicons'
// import Images from '../Library/Images'; // import Images from '../Library/Images';
import { View , Image} from 'react-native'; import { View, Image } from 'react-native';
import LinearGradient from 'react-native-linear-gradient'; import LinearGradient from 'react-native-linear-gradient';
import { TouchableOpacity } from 'react-native-gesture-handler'; import { TouchableOpacity } from 'react-native-gesture-handler';
import Colors from '../library/colors'; import Colors from '../library/colors';
import HomeTabNavigation from './homeTabNavigation'; import HomeTabNavigation from './homeTabNavigation';
import Images from '../library/images';
const MainNavigator = createStackNavigator({ const MainNavigator = createStackNavigator({
Login: { screen: Login, navigationOptions: { header: null}}, Login: { screen: Login, navigationOptions: { header: null } },
LoginNew: { screen: LoginNew, navigationOptions: { header: null}}, LoginNew: { screen: LoginNew, navigationOptions: { header: null } },
Splash: { screen: SplashScreen, navigationOptions: { header: null}}, Splash: { screen: SplashScreen, navigationOptions: { header: null } },
HomeNavigation: { screen: HomeTabNavigation, navigationOptions: { header: null}}, HomeNavigation: { screen: HomeTabNavigation, navigationOptions: { header: null } },
HomepageScreen: { screen: HomepageScreen, navigationOptions: { header: null} }, HomepageScreen: { screen: HomepageScreen, navigationOptions: { header: null } },
Appraisal: { screen: Appraisal, navigationOptions: { title: 'Appraisal'}}, Appraisal: { screen: Appraisal, navigationOptions: { title: 'Appraisal' } },
MenuAppraisal: { screen: MenuAppraisal, navigationOptions: { title: 'Menu Appraisal'}}, MenuAppraisal: { screen: MenuAppraisal, navigationOptions: { title: 'Menu Appraisal' } },
MenuAppraisal2: { screen: MenuAppraisal2, navigationOptions: { title: 'Menu Appraisal'}}, MenuAppraisal2: { screen: MenuAppraisal2, navigationOptions: { title: 'Menu Appraisal' } },
MenuAppraisal3: { screen: MenuAppraisal3, navigationOptions: { title: 'Menu Appraisal'}}, MenuAppraisal3: { screen: MenuAppraisal3, navigationOptions: { title: 'Menu Appraisal' } },
Penerimaan: { screen: Penerimaan, navigationOptions: { title: 'Penerimaan'}}, Penerimaan: { screen: Penerimaan, navigationOptions: { title: 'Penerimaan' } },
MenuPenerimaan: { screen: MenuPenerimaan, navigationOptions: { header: null} }, MenuPenerimaan: { screen: MenuPenerimaan, navigationOptions: { title: 'Menu Penerimaan' } },
MenuPenerimaan2: { screen: MenuPenerimaan2, navigationOptions: { header: null} }, MenuPenerimaan2: { screen: MenuPenerimaan2, navigationOptions: { title: 'Menu Penerimaan' } },
MenuPenerimaan3: { screen: MenuPenerimaan3, navigationOptions: { header: null} }, MenuPenerimaan3: { screen: MenuPenerimaan3, navigationOptions: { title: 'Menu Penerimaan' } },
// LatihanDragDrop: { screen: LatihanDragDrop, navigationOptions: { title: 'Latihan'}} // LatihanDragDrop: { screen: LatihanDragDrop, navigationOptions: { title: 'Latihan'}}
}, { }, {
headerMode: 'screen', headerMode: 'screen',
initialRouteName: 'Splash', initialRouteName: 'Splash',
transitionConfig: () => fromLeft(500), transitionConfig: () => fromLeft(500),
defaultNavigationOptions: { defaultNavigationOptions: {
headerStyle, headerStyle,
headerTitleStyle, headerTitleStyle,
headerBackground: (<LinearGradient colors={[Colors.yellowBasic, Colors.yellowBasic]} start={{x: 0, y: .3}} end={{x: 0, y: .9}} style={headerBgStyle} />), headerBackground: (<Image source={Images.background3} style={headerBgStyle}/>),
headerTintColor: 'white', // <LinearGradient colors={[Colors.yellowStatusBar, Colors.yellowBasic]} start={{ x: 0, y: .3 }} end={{ x: 0, y: .9 }} style={headerBgStyle} />
headerBackImage: (
// <Image source={Images.buttonBack} style={{width: 30, height: 20}}/> headerTintColor: 'white',
<TouchableOpacity style={{paddingLeft: 10}} activeOpacity={.9}> headerBackImage: (
<Ionicons name='ios-arrow-back' size={30} color={'#fff'}/> // <Image source={Images.buttonBack} style={{width: 30, height: 20}}/>
</TouchableOpacity> <TouchableOpacity style={{ paddingLeft: 10 }} activeOpacity={.9}>
) <Ionicons name='ios-arrow-back' size={30} color={'#fff'} />
} </TouchableOpacity>
}); )
}
export default createAppContainer(MainNavigator); });
\ No newline at end of file
export default createAppContainer(MainNavigator);
\ No newline at end of file
...@@ -5,7 +5,7 @@ import { Image, Text } from 'react-native' ...@@ -5,7 +5,7 @@ import { Image, Text } from 'react-native'
import { View } from 'native-base'; import { View } from 'native-base';
import SimpleLineIcons from 'react-native-vector-icons/SimpleLineIcons'; import SimpleLineIcons from 'react-native-vector-icons/SimpleLineIcons';
import FontAwesome5 from 'react-native-vector-icons/FontAwesome5' import FontAwesome5 from 'react-native-vector-icons/FontAwesome5'
import MaterialIcons from 'react-native-vector-icons/MaterialIcons' import MaterialIcons from 'react-native-vector-icons/MaterialIcons'
...@@ -17,70 +17,72 @@ import Profile from '../container/profile/profile' ...@@ -17,70 +17,72 @@ import Profile from '../container/profile/profile'
import colors from '../library/colors'; import colors from '../library/colors';
import Images from '../library/images'; import Images from '../library/images';
export default TabNavigator = createBottomTabNavigator( export default TabNavigator = createBottomTabNavigator(
{ {
Home: { Home: {
screen: HomePageScreen, screen: HomePageScreen,
navigationOptions:{ navigationOptions: {
header: null, header: null,
tabBarLabel: ({ tintColor }) => ( tabBarLabel: ({ tintColor }) => (
<Text style={[styles.label, { color: tintColor }]}>Home</Text> <Text style={[styles.label, { color: tintColor }]}>Home</Text>
), ),
tabBarIcon: ({ tintColor }) => ( tabBarIcon: ({ tintColor }) => (
<View style={{ justifyContent: 'center', alignSelf: 'center', paddingTop: 5}}> <View style={{ justifyContent: 'center', alignSelf: 'center', paddingTop: 5 }}>
<FontAwesome5 name={'home'} size={20} color={tintColor}/> <Image source={Images.MenuHome} style={{ width: 35, height: 35, tintColor: tintColor }} />
</View>), </View>),
} }
}, },
History: { screen: History, History: {
navigationOptions:{ screen: History,
navigationOptions: {
header: null, header: null,
tabBarLabel: ({ tintColor }) => ( tabBarLabel: ({ tintColor }) => (
<Text style={[styles.label, { color: tintColor }]}>History</Text> <Text style={[styles.label, { color: tintColor }]}>History</Text>
), ),
tabBarIcon: ({ tintColor }) => ( tabBarIcon: ({ tintColor }) => (
<View style={{ justifyContent: 'center', alignSelf: 'center', paddingTop: 5}}> <View style={{ justifyContent: 'center', alignSelf: 'center', paddingTop: 5 }}>
<FontAwesome5 name={'history'} size={20} color={tintColor}/> <Image source={Images.MenuHistory} style={{ width: 35, height: 35, tintColor: tintColor }} />
</View>), </View>),
// activeColor: '#f60c0d', // activeColor: '#f60c0d',
// inactiveColor: '#f65a22', // inactiveColor: '#f65a22',
// barStyle: { backgroundColor: '#f69b31' }, // barStyle: { backgroundColor: '#f69b31' },
} }
}, },
Notif: { screen: Notif, Notif: {
navigationOptions:{ screen: Notif,
navigationOptions: {
header: null, header: null,
tabBarLabel: ({ tintColor }) => ( tabBarLabel: ({ tintColor }) => (
<Text style={[styles.label, { color: tintColor }]}>Notification</Text> <Text style={[styles.label, { color: tintColor }]}>Notification</Text>
), ),
tabBarIcon: ({ tintColor }) => ( tabBarIcon: ({ tintColor }) => (
<View style={{ justifyContent: 'center', alignSelf: 'center', paddingTop: 5}}> <View style={{ justifyContent: 'center', alignSelf: 'center', paddingTop: 5 }}>
<FontAwesome5 name={'bell'} size={20} color={tintColor}/> <Image source={Images.MenuNotification} style={{ width: 35, height: 35, tintColor: tintColor }} />
</View>), </View>),
// activeColor: '#615af6', // activeColor: '#615af6',
// inactiveColor: '#46f6d7', // inactiveColor: '#46f6d7',
// barStyle: { backgroundColor: '#67baf6' }, // barStyle: { backgroundColor: '#67baf6' },
} }
}, },
Profile: { Profile: {
screen: Profile, screen: Profile,
navigationOptions:{ navigationOptions: {
header: null, header: null,
tabBarLabel: ({ tintColor }) => ( tabBarLabel: ({ tintColor }) => (
<Text style={[styles.label, { color: tintColor }]}>Profile</Text> <Text style={[styles.label, { color: tintColor }]}>Profile</Text>
), ),
tabBarVisible: true, tabBarVisible: true,
tabBarIcon: ({ tintColor }) => ( tabBarIcon: ({ tintColor }) => (
<View style={{ justifyContent: 'center', alignSelf: 'center', paddingTop: 5}}> <View style={{ justifyContent: 'center', alignSelf: 'center', paddingTop: 5 }}>
<FontAwesome5 name={'baby'} size={20} color={tintColor}/> <Image source={Images.MenuProfile} style={{ width: 35, height: 35, tintColor: tintColor }} />
</View>), </View>),
} }
}, },
}, },
{ {
tabBarOptions: { tabBarOptions: {
inactiveTintColor: 'gray', inactiveTintColor: 'gray',
activeTintColor: colors.yellowBasic, activeTintColor: '#e4b300',
style: { style: {
backgroundColor: '#FFFFFF', backgroundColor: '#FFFFFF',
width: '100%', width: '100%',
...@@ -89,9 +91,9 @@ export default TabNavigator = createBottomTabNavigator( ...@@ -89,9 +91,9 @@ export default TabNavigator = createBottomTabNavigator(
color: 'black' color: 'black'
} }
}, },
}, },
); );
const styles = { const styles = {
label: { label: {
textAlign: 'center', fontSize: 12, marginBottom: 5 textAlign: 'center', fontSize: 12, marginBottom: 5
......
...@@ -19,6 +19,7 @@ export const headerTitleStyle = { ...@@ -19,6 +19,7 @@ export const headerTitleStyle = {
textAlign: 'center', textAlign: 'center',
marginLeft: -15, marginLeft: -15,
fontWeight: '600', fontWeight: '600',
color: '#fff'
} }
export const headerRightStyle = { export const headerRightStyle = {
......
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