add MainColor

This commit is contained in:
Vincent BRIDIER 2022-12-30 10:02:07 +01:00
parent 04407b6f65
commit 793ef4a1fa
No known key found for this signature in database
GPG key ID: 8571BFA20420D512
20 changed files with 142 additions and 120 deletions

View file

@ -13,6 +13,8 @@ import FlashMessage, { showMessage } from 'react-native-flash-message';
import * as SplashScreen from 'expo-splash-screen';
// i18n
import i18n from "./I18n";
// FileSytem
import * as FileSystem from 'expo-file-system';
// Controllers
import SyncController from './App/Controllers/SyncController';
// Views
@ -28,6 +30,8 @@ import ContactScreen from './App/Views/ContactScreen';
import ContactDetailsScreen from './App/Views/ContactDetailsScreen';
import SearchScreen from "./App/Views/SearchScreen";
import MySpaceScreen from './App/Views/MySpaceScreen';
// Style
import styles from './Resources/Styles/NavigationStyle';
// END V2
// V2
//SplashScreen.preventAutoHideAsync(); //Keep
@ -44,7 +48,8 @@ class App extends React.Component {
isSetup: false,
isLogged: false,
searchTxt: '',
sendEmail: ''
sendEmail: '',
mainColor: ''
};
componentDidMount() {
@ -63,6 +68,7 @@ class App extends React.Component {
this.setState({
isSetup: store.getState().app.isSetup,
isLogged: store.getState().app.logged,
mainColor: store.getState().app.mainColor
}); // to force re-rendering
console.log("state changed")
}
@ -77,7 +83,7 @@ class App extends React.Component {
name="InstallScreen"
component={InstallScreen}
options={(navigation, route) => ({
headerTitle: () => this.LogoTitle(navigation, i18n.t('install.installation')),
headerTitle: () => this.LogoTitle(navigation, i18n.t('install.installation'), false),
headerRight: () => (
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
<TouchableOpacity
@ -97,7 +103,7 @@ class App extends React.Component {
name="LoginScreen"
component={LoginScreen}
options={(navigation, route) => ({
headerTitle: () => this.LogoTitle(navigation, i18n.t('global.login')),
headerTitle: () => this.LogoTitle(navigation, i18n.t('global.login'), false),
headerRight: () => (
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
<TouchableOpacity
@ -120,8 +126,15 @@ class App extends React.Component {
headerRight: () => (
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
<View style={{ flexDirection: 'row', marginRight: 50 }}>
<TextInput style={styles.searchInput} placeholder={i18n.t('global.search')} value={this.state.searchTxt} onChangeText={(text) => this.setState({ searchTxt: text })} />
<TouchableOpacity style={styles.btnSearch} onPress={() => {
<TextInput
style={{ ...styles.searchInput, borderColor: this.state.mainColor }}
placeholder={i18n.t('global.search')}
value={this.state.searchTxt}
onChangeText={(text) => this.setState({ searchTxt: text })}
/>
<TouchableOpacity
style={{ ...styles.btnSearch, backgroundColor: this.state.mainColor }}
onPress={() => {
if (this.state.searchTxt.length > 0) {
navigation.navigation.navigate('SearchScreen', {
needle: this.state.searchTxt,
@ -189,8 +202,8 @@ class App extends React.Component {
headerTitle: () => this.LogoTitle(navigation, i18n.t('global.videos')),
headerRight: () => (
<View style={{ flexDirection: 'row', marginRight: 5 }}>
<TextInput style={styles.searchInput} placeholder={i18n.t('global.search')} value={this.state.searchTxt} onChangeText={(text) => this.setState({ searchTxt: text })} />
<TouchableOpacity style={styles.btnSearch} onPress={() => {
<TextInput style={{ ...styles.searchInput, borderColor: this.state.mainColor }} placeholder={i18n.t('global.search')} value={this.state.searchTxt} onChangeText={(text) => this.setState({ searchTxt: text })} />
<TouchableOpacity style={{ ...styles.btnSearch, backgroundColor: this.state.mainColor }} onPress={() => {
if (this.state.searchTxt.length > 0) {
navigation.navigation.navigate('SearchScreen', {
needle: this.state.searchTxt,
@ -270,14 +283,25 @@ class App extends React.Component {
);
}
LogoTitle(navigation, title) {
LogoTitle(navigation, title, wantBtn = true) {
return (
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
<TouchableOpacity onPress={() => { navigation.navigation.navigate('HomeScreen') }}>
<Image
style={{ width: 100, height: 50, resizeMode: 'stretch' }}
source={require('./assets/img/logo.png')}
/>
<TouchableOpacity onPress={() => {
if (wantBtn) {
navigation.navigation.navigate('HomeScreen')
}
}}>
{this.state.isSetup ? (
<Image
style={{ width: 100, height: 50, resizeMode: 'stretch' }}
source={{ uri: FileSystem.documentDirectory + 'RectangleLogo.png' }}
/>
) : (
<Image
style={{ width: 100, height: 50, resizeMode: 'stretch' }}
source={require('./assets/img/logo.png')}
/>
)}
</TouchableOpacity>
<Text style={{ marginLeft: 10, fontSize: 18 }}>{title}</Text>
</View>
@ -287,8 +311,8 @@ class App extends React.Component {
SendEmail() {
return (
<View style={{ flexDirection: 'row', alignItems: 'center', marginRight: 10 }}>
<TextInput style={styles.searchInput} placeholder={i18n.t('global.email')} value={this.state.sendEmail} onChangeText={(text) => this.setState({ sendEmail: text })} />
<TouchableOpacity style={styles.btnSearch} onPress={() => {
<TextInput style={{ ...styles.searchInput, borderColor: this.state.mainColor }} placeholder={i18n.t('global.email')} value={this.state.sendEmail} onChangeText={(text) => this.setState({ sendEmail: text })} />
<TouchableOpacity style={{ ...styles.btnSearch, backgroundColor: this.state.mainColor }} onPress={() => {
if (this.state.sendEmail.length > 0) {
if (Helpers.isEmailValid(this.state.sendEmail)) {
const email = {
@ -342,20 +366,4 @@ class App extends React.Component {
}
const styles = StyleSheet.create({
searchInput: {
borderWidth: 1,
borderColor: '#ea4f52',
width: 200,
paddingLeft: 20,
},
btnSearch: {
width: 50,
height: 50,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: '#ea4f52'
}
});
export default App;

View file

@ -11,6 +11,7 @@ const initialState = {
currentOpenedDoc: {},
ShowIsActive: 0,
HomeBtns: {},
mainColor: '#ea4f52'
};
const reducer = (state = initialState, action) => {
@ -18,11 +19,13 @@ const reducer = (state = initialState, action) => {
switch (action.type) {
case 'INIT':
let ShowIsActive = Setting.get('ShowIsActive');
let MainColor = Setting.get('MainColor');
saved = Setting.get('isSetup');
return {
...state,
isSetup: saved === undefined ? false : saved.value === "true" ? true : false,
ShowIsActive: ShowIsActive === undefined ? false : ShowIsActive.value
ShowIsActive: ShowIsActive === undefined ? false : ShowIsActive.value,
mainColor: MainColor === undefined ? initialState.mainColor : MainColor === false ? initialState.mainColor : MainColor.value
};
case 'INIT_HOME_BTNS': {
let HomeFolders = Setting.get('HomeFolders');

View file

@ -34,6 +34,7 @@ function mapStateToProps(state) {
return {
contacts: state.contacts,
currentUser: state.app.currentUser,
mainColor: state.app.mainColor
};
}
@ -361,7 +362,7 @@ class ContactDetailsScreen extends React.Component {
justifyContent: 'center',
}}>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
center
title={i18n.t('contact_details_s.customer')}
checkedIcon="dot-circle-o"
@ -371,7 +372,7 @@ class ContactDetailsScreen extends React.Component {
onPress={() => this.updateContactType('client')}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
center
title={i18n.t('contact_details_s.prospect')}
checkedIcon="dot-circle-o"
@ -381,7 +382,7 @@ class ContactDetailsScreen extends React.Component {
onPress={() => this.updateContactType('prospect')}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
center
title={i18n.t('contact_details_s.other')}
checkedIcon="dot-circle-o"
@ -517,28 +518,28 @@ class ContactDetailsScreen extends React.Component {
justifyContent: 'center',
}}>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
title={i18n.t('custom.interest.p1')}
checked={this.state.p1}
onPress={() => this.setState({ p1: !this.state.p1 })}
containerStyle={styles.clearCheckbox}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
title={i18n.t('custom.interest.p2')}
checked={this.state.p2}
onPress={() => this.setState({ p2: !this.state.p2 })}
containerStyle={styles.clearCheckbox}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
title={i18n.t('custom.interest.p3')}
checked={this.state.p3}
onPress={() => this.setState({ p3: !this.state.p3 })}
containerStyle={styles.clearCheckbox}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
title={i18n.t('custom.interest.p4')}
checked={this.state.p4}
onPress={() => this.setState({ p4: !this.state.p4 })}
@ -550,7 +551,7 @@ class ContactDetailsScreen extends React.Component {
<View style={{ flex: 1 }}>
<ButtonGroup
buttons={[i18n.t('contact_details_s.visits'), i18n.t('contact_details_s.notes')]}
selectedButtonStyle={{ backgroundColor: '#ea4f52' }}
selectedButtonStyle={{ backgroundColor: this.props.mainColor }}
containerStyle={{ height: 30 }}
selectedIndex={this.state.selectedIndex}
onPress={index => this.setState({ selectedIndex: index })}
@ -602,13 +603,13 @@ class ContactDetailsScreen extends React.Component {
<TouchableOpacity
style={styles.button}
onPress={() => this.setState({ showNewVisit: true })}>
<FontAwesome5 name="plus-circle" size={20} color={'#ea4f52'} />
<FontAwesome5 name="plus-circle" size={20} color={this.props.mainColor} />
</TouchableOpacity>
{this.state.visits.length > 0 && (
<TouchableOpacity
style={styles.button}
onPress={() => this.deleteVisit()}>
<FontAwesome5 name="trash" size={20} color={'#ea4f52'} />
<FontAwesome5 name="trash" size={20} color={this.props.mainColor} />
</TouchableOpacity>
)}
</View>
@ -641,10 +642,10 @@ class ContactDetailsScreen extends React.Component {
<View style={{ flexDirection: 'row', justifyContent: 'space-evenly' }}>
{this.state.action === 'add' && (
<>
<Button title="QRCode vCard" onPress={() => this.setState({ showQRcodevCard: true })} color={'#ea4f52'} />
<Button title="QRCode vCard" onPress={() => this.setState({ showQRcodevCard: true })} color={this.props.mainColor} />
</>
)}
<Button title={i18n.t('global.save')} onPress={() => this.updateContact()} color={'#ea4f52'} />
<Button title={i18n.t('global.save')} onPress={() => this.updateContact()} color={this.props.mainColor} />
</View>
</View>
<Overlay
@ -678,9 +679,9 @@ class ContactDetailsScreen extends React.Component {
<Button
title={i18n.t('global.cancel')}
onPress={() => this.setState({ showNewVisit: false })}
color={'#ea4f52'}
color={this.props.mainColor}
/>
<Button title={i18n.t('global.add')} onPress={() => this.newVisit()} color={'#ea4f52'} />
<Button title={i18n.t('global.add')} onPress={() => this.newVisit()} color={this.props.mainColor} />
</View>
</View>
</Overlay>
@ -714,9 +715,9 @@ class ContactDetailsScreen extends React.Component {
<Button
title={i18n.t('global.cancel')}
onPress={() => this.setState({ showQRcodevCard: false, scanned: false })}
color={'#ea4f52'}
color={this.props.mainColor}
/>
{this.state.scanned && <Button title={i18n.t('global.retry')} onPress={() => this.setState({ scanned: false })} color={'#ea4f52'} />}
{this.state.scanned && <Button title={i18n.t('global.retry')} onPress={() => this.setState({ scanned: false })} color={this.props.mainColor} />}
</View>
</View>
</Overlay>
@ -821,7 +822,7 @@ class ContactDetailsScreen extends React.Component {
<Button
title={i18n.t('global.cancel')}
onPress={() => this.setState({ showDynContact: false, scanned: false, parsedName: '', parsedFirstname: '', parsedEmail: '', parsedCompany: '', parsedAddress: '', parsedPhone: '' })}
color={'#ea4f52'}
color={this.props.mainColor}
/>
<Button
title={i18n.t('global.next')}
@ -841,7 +842,7 @@ class ContactDetailsScreen extends React.Component {
showDynContact: false,
scanned: false,
})}
color={'#ea4f52'}
color={this.props.mainColor}
/>
</View>
</View>

View file

@ -33,6 +33,7 @@ function mapStateToProps(state) {
contacts: state.contacts,
documents: state.documents,
currentUser: state.app.currentUser,
mainColor: state.app.mainColor
};
}
@ -172,7 +173,7 @@ class ContactScreen extends React.Component {
contactId: item.id,
})
}>
<Text style={styles.clickable}>
<Text style={{ ...styles.clickable, color: this.props.mainColor }}>
{item.name.toUpperCase()} {item.firstname}
</Text>
</TouchableOpacity>
@ -184,7 +185,7 @@ class ContactScreen extends React.Component {
onPress={() => {
this.deleteContactAction(item.id);
}}>
<FontAwesome5 name="trash" size={20} color={'#ea4f52'} />
<FontAwesome5 name="trash" size={20} color={this.props.mainColor} />
</TouchableOpacity>
<TouchableOpacity
style={styles.button}
@ -194,7 +195,7 @@ class ContactScreen extends React.Component {
contactToTransfer: item,
});
}}>
<FontAwesome5 name="paper-plane" size={20} color={'#ea4f52'} />
<FontAwesome5 name="paper-plane" size={20} color={this.props.mainColor} />
</TouchableOpacity>
</View>
</View>
@ -221,12 +222,12 @@ class ContactScreen extends React.Component {
<TouchableOpacity onPress={() => {
this.sortContacts('name');
}}>
<Text style={styles.clickable}>{i18n.t('global.name')} <FontAwesome5 name={'sort'} /></Text>
<Text style={{ ...styles.clickable, color: this.props.mainColor }}>{i18n.t('global.name')} <FontAwesome5 name={'sort'} /></Text>
</TouchableOpacity>
<TouchableOpacity onPress={() => {
this.sortContacts('company');
}}>
<Text style={styles.clickable}>{i18n.t('global.company')} <FontAwesome5 name={'sort'} /></Text>
<Text style={{ ...styles.clickable, color: this.props.mainColor }}>{i18n.t('global.company')} <FontAwesome5 name={'sort'} /></Text>
</TouchableOpacity>
<Text style={styles.email}>{i18n.t('global.email')}</Text>
<Text style={styles.buttons} />
@ -301,7 +302,7 @@ class ContactScreen extends React.Component {
alignItems: 'center',
}}>
<Button
color={'#ea4f52'}
color={this.props.mainColor}
title={i18n.t('global.add')}
onPress={() =>
this.props.navigation.navigate('ContactDetailsScreen', {
@ -310,13 +311,13 @@ class ContactScreen extends React.Component {
}
/>
<Button
color={'#ea4f52'}
color={this.props.mainColor}
title={i18n.t('contact_s.send_flyer')}
onPress={() => this.setState({ showSendBrochure: true })}
/>
<View style={{ flexDirection: 'row' }}>
<TextInput placeholder={i18n.t('global.search')} style={styles.inputSearch} value={this.state.searchTxt} onChangeText={(text) => this.handleSearchTxt(text)} />
<TouchableOpacity style={styles.btnSearch} onPress={() => this.handleSearchBtn()}>
<TouchableOpacity style={{ ...styles.btnSearch, backgroundColor: this.props.mainColor }} onPress={() => this.handleSearchBtn()}>
{this.state.searchTxt.length > 0 ? (
<FontAwesome5 name={'times'} size={20} color={'white'} />
) : (
@ -364,12 +365,12 @@ class ContactScreen extends React.Component {
width: 400,
}}>
<Button
color={'#ea4f52'}
color={this.props.mainColor}
title={i18n.t('global.cancel')}
onPress={() => this.setState({ showTransferContact: false })}
/>
<Button
color={'#ea4f52'}
color={this.props.mainColor}
title={i18n.t('contact_s.transfer')}
onPress={() => this.transferContact()}
/>
@ -524,7 +525,7 @@ class ContactScreen extends React.Component {
marginTop: 15,
}}>
<Button
color={'#ea4f52'}
color={this.props.mainColor}
title={i18n.t('global.cancel')}
onPress={() =>
this.setState({
@ -538,7 +539,7 @@ class ContactScreen extends React.Component {
})
}
/>
<Button title={i18n.t('global.send')} onPress={() => this.sendBrochure()} color={'#ea4f52'} />
<Button title={i18n.t('global.send')} onPress={() => this.sendBrochure()} color={this.props.mainColor} />
</View>
</View>
</Overlay>

View file

@ -23,6 +23,7 @@ function mapStateToProps(state) {
documents: state.documents,
directories: state.directories,
locale: state.locale.locale,
mainColor: state.app.mainColor
};
}
@ -37,7 +38,7 @@ class DirectoriesScreen extends React.Component {
return (
<TouchableOpacity
key={document.id.toString()}
style={styles.file}
style={{ ...styles.file, backgroundColor: this.props.mainColor }}
onPress={() => this.openDocument(document)}>
{document.type === 'pdf' ? (
<FontAwesome5 name="file-pdf" color={'white'} size={60} />
@ -59,7 +60,6 @@ class DirectoriesScreen extends React.Component {
rightImage={{ uri: Image.resolveAssetSource(arrowDown).uri }}
containerStyle={styles.treeviewContainer}
onClick={folder => {
console.log(folder, this.props.documents)
this.setState({
documents: this.props.documents.filter(
tmp => tmp.directory === folder.id,

View file

@ -45,10 +45,15 @@ class HomeScreen extends React.Component {
render() {
i18n.locale = this.props.locale;
return (
<ImageBackground source={{ uri: FileSystem.documentDirectory + 'BackgroundImage.png' }} style={commonStyles.background}>
<ImageBackground source={{ uri: FileSystem.documentDirectory + 'BackgroundImage.png' }} style={commonStyles.background} resizeMode='cover'>
<View style={styles.container}>
{this.renderBtns()}
<TouchableOpacity onPress={() => this.props.navigation.navigate('OnlyVideosScreen')} style={styles.button}>
<TouchableOpacity
onPress={() => {
this.props.initDocuments(this.props.locale, this.props.directories.global);
this.props.navigation.navigate('OnlyVideosScreen');
}}
style={styles.button}>
<Image source={{ uri: FileSystem.documentDirectory + 'HomeButtonImage.png' }} style={styles.btnImg} />
<Text style={styles.btnTxt}>{i18n.t('global.videos')}</Text>
</TouchableOpacity>

View file

@ -22,6 +22,7 @@ function mapStateToProps(state) {
app: state.app,
users: state.users.users,
locale: state.locale.locale,
mainColor: state.app.mainColor
};
}
@ -69,7 +70,7 @@ class LoginScreen extends React.Component {
<Button
title={i18n.t('global.login')}
onPress={() => this.login(this.state.login, this.state.password)}
color={'#ea4f52'}
color={this.props.mainColor}
/>
</View>
</View>

View file

@ -15,6 +15,7 @@ import styles from '../../Resources/Styles/OnlyVideosStyle';
function mapStateToProps(state) {
return {
documents: state.documents,
mainColor: state.app.mainColor
};
}
@ -32,7 +33,7 @@ class OnlyVideosScreen extends React.Component {
return (
<TouchableOpacity
key={document.id.toString()}
style={styles.file}
style={{ ...styles.file, backgroundColor: this.props.mainColor }}
onPress={() => {
this.props.dispatch({ type: 'SET_CURRENT_OPENED_DOC', data: document });
this.props.navigation.navigate('VideoScreen', { uuid: document.uuid });

View file

@ -19,6 +19,7 @@ import styles from '../../Resources/Styles/SearchStyle';
function mapStateToProps(state) {
return {
documents: state.documents,
mainColor: state.app.mainColor
};
}
@ -57,7 +58,7 @@ class SearchScreen extends React.Component {
return (
<TouchableOpacity
key={document.id.toString()}
style={styles.file}
style={{ ...styles.file, backgroundColor: this.props.mainColor }}
onPress={() => this.openDocument(document)}>
{document.type === 'pdf' ? (
<FontAwesome5 name="file-pdf" color={'white'} size={60} />

View file

@ -66,12 +66,12 @@ class SyncScreen extends React.Component {
size={250}
progress={this.state.progress}
showsText={true}
color={'#ea4f52'}
color={this.props.mainColor}
/>
<View style={styles.btnWrapper}>
<Button
disabled={this.state.processing}
color={'#ea4f52'}
color={this.props.mainColor}
title={i18n.t('sync_s.start_sync')}
onPress={() => this.sync()}
/>

View file

@ -1,11 +1,19 @@
import React from 'react';
import { View, Dimensions } from 'react-native';
// Reduxs
import { connect } from 'react-redux';
// FileSytem
import * as FileSystem from 'expo-file-system';
// Video
import { ResizeMode } from 'expo-av';
import VideoPlayer from 'expo-video-player';
function mapStateToProps(state) {
return {
mainColor: state.app.mainColor
};
}
class VideoScreen extends React.Component {
render() {
const { uuid } = this.props.route.params;
@ -28,8 +36,8 @@ class VideoScreen extends React.Component {
visible: false
}}
slider={{
minimumTrackTintColor: '#ea4f52',
thumbTintColor: '#ea4f52',
minimumTrackTintColor: this.props.mainColor,
thumbTintColor: this.props.mainColor,
}}
style={{
height: height,
@ -48,4 +56,4 @@ class VideoScreen extends React.Component {
}
}
export default VideoScreen;
export default connect(mapStateToProps)(VideoScreen);

View file

@ -1,19 +1,19 @@
import { StyleSheet } from 'react-native';
const commonStyles = StyleSheet.create({
background: {
width: '100%',
height: '100%'
background: {
flex: 1,
justifyContent: "center"
},
textInput: {
height: 40,
width: 300,
borderColor: 'grey',
borderWidth: 1,
marginBottom: 20,
backgroundColor: 'white',
paddingLeft: 10
}
textInput: {
height: 40,
width: 300,
borderColor: 'grey',
borderWidth: 1,
marginBottom: 20,
backgroundColor: 'white',
paddingLeft: 10
}
});
export default commonStyles;

View file

@ -18,7 +18,6 @@ const styles = StyleSheet.create({
textAlign: 'center',
fontSize: 18,
width: width / 4,
color: '#ea4f52',
fontWeight: 'bold'
},
company: {
@ -68,8 +67,7 @@ const styles = StyleSheet.create({
btnSearch: {
width: 50,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: '#ea4f52'
justifyContent: 'center'
}
});

View file

@ -22,7 +22,6 @@ const styles = StyleSheet.create({
alignItems: 'center',
height: 200,
width: 180,
backgroundColor: '#ea4f52',
margin: 10,
},
fileTxt: {

View file

@ -3,7 +3,6 @@ import { StyleSheet } from 'react-native';
const styles = StyleSheet.create({
searchInput: {
borderWidth: 1,
borderColor: '#ea4f52',
width: 200,
paddingLeft: 20,
},
@ -12,7 +11,6 @@ const styles = StyleSheet.create({
height: 50,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: '#ea4f52'
}
});

View file

@ -19,7 +19,6 @@ const styles = StyleSheet.create({
alignItems: 'center',
height: 200,
width: 180,
backgroundColor: '#ea4f52',
margin: 10,
},
fileTxt: {

View file

@ -19,7 +19,6 @@ const styles = StyleSheet.create({
alignItems: 'center',
height: 200,
width: 180,
backgroundColor: '#ea4f52',
margin: 10,
},
fileTxt: {

View file

@ -344,7 +344,7 @@ class ContactDetailsScreen extends React.Component {
justifyContent: 'center',
}}>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
center
title={i18n.t('contact_details_s.customer')}
checkedIcon="dot-circle-o"
@ -354,7 +354,7 @@ class ContactDetailsScreen extends React.Component {
onPress={() => this.updateContactType('client')}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
center
title={i18n.t('contact_details_s.prospect')}
checkedIcon="dot-circle-o"
@ -364,7 +364,7 @@ class ContactDetailsScreen extends React.Component {
onPress={() => this.updateContactType('prospect')}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
center
title={i18n.t('contact_details_s.other')}
checkedIcon="dot-circle-o"
@ -500,28 +500,28 @@ class ContactDetailsScreen extends React.Component {
justifyContent: 'center',
}}>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
title={i18n.t('custom.interest.p1')}
checked={this.state.p1}
onPress={() => this.setState({ p1: !this.state.p1 })}
containerStyle={styles.clearCheckbox}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
title={i18n.t('custom.interest.p2')}
checked={this.state.p2}
onPress={() => this.setState({ p2: !this.state.p2 })}
containerStyle={styles.clearCheckbox}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
title={i18n.t('custom.interest.p3')}
checked={this.state.p3}
onPress={() => this.setState({ p3: !this.state.p3 })}
containerStyle={styles.clearCheckbox}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
title={i18n.t('custom.interest.p4')}
checked={this.state.p4}
onPress={() => this.setState({ p4: !this.state.p4 })}

View file

@ -344,7 +344,7 @@ class ContactDetailsScreen extends React.Component {
justifyContent: 'center',
}}>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
center
title={i18n.t('contact_details_s.customer')}
checkedIcon="dot-circle-o"
@ -354,7 +354,7 @@ class ContactDetailsScreen extends React.Component {
onPress={() => this.updateContactType('client')}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
center
title={i18n.t('contact_details_s.prospect')}
checkedIcon="dot-circle-o"
@ -364,7 +364,7 @@ class ContactDetailsScreen extends React.Component {
onPress={() => this.updateContactType('prospect')}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
center
title={i18n.t('contact_details_s.other')}
checkedIcon="dot-circle-o"
@ -500,28 +500,28 @@ class ContactDetailsScreen extends React.Component {
justifyContent: 'center',
}}>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
title={i18n.t('custom.interest.p1')}
checked={this.state.p1}
onPress={() => this.setState({ p1: !this.state.p1 })}
containerStyle={styles.clearCheckbox}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
title={i18n.t('custom.interest.p2')}
checked={this.state.p2}
onPress={() => this.setState({ p2: !this.state.p2 })}
containerStyle={styles.clearCheckbox}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
title={i18n.t('custom.interest.p3')}
checked={this.state.p3}
onPress={() => this.setState({ p3: !this.state.p3 })}
containerStyle={styles.clearCheckbox}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
title={i18n.t('custom.interest.p4')}
checked={this.state.p4}
onPress={() => this.setState({ p4: !this.state.p4 })}

View file

@ -343,7 +343,7 @@ class ContactDetailsScreen extends React.Component {
justifyContent: 'center',
}}>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
center
title={i18n.t('contact_details_s.customer')}
checkedIcon="dot-circle-o"
@ -353,7 +353,7 @@ class ContactDetailsScreen extends React.Component {
onPress={() => this.updateContactType('client')}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
center
title={i18n.t('contact_details_s.prospect')}
checkedIcon="dot-circle-o"
@ -363,7 +363,7 @@ class ContactDetailsScreen extends React.Component {
onPress={() => this.updateContactType('prospect')}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
center
title={i18n.t('contact_details_s.other')}
checkedIcon="dot-circle-o"
@ -480,63 +480,63 @@ class ContactDetailsScreen extends React.Component {
justifyContent: 'center',
}}>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
title={i18n.t('custom.interest.p1')}
checked={this.state.p1}
onPress={() => this.setState({ p1: !this.state.p1 })}
containerStyle={styles.clearCheckbox}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
title={i18n.t('custom.interest.p2')}
checked={this.state.p2}
onPress={() => this.setState({ p2: !this.state.p2 })}
containerStyle={styles.clearCheckbox}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
title={i18n.t('custom.interest.p3')}
checked={this.state.p3}
onPress={() => this.setState({ p3: !this.state.p3 })}
containerStyle={styles.clearCheckbox}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
title={i18n.t('custom.interest.p4')}
checked={this.state.p4}
onPress={() => this.setState({ p4: !this.state.p4 })}
containerStyle={styles.clearCheckbox}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
title={i18n.t('custom.interest.p5')}
checked={this.state.p5}
onPress={() => this.setState({ p5: !this.state.p5 })}
containerStyle={styles.clearCheckbox}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
title={i18n.t('custom.interest.p6')}
checked={this.state.p6}
onPress={() => this.setState({ p6: !this.state.p6 })}
containerStyle={styles.clearCheckbox}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
title={i18n.t('custom.interest.p7')}
checked={this.state.p7}
onPress={() => this.setState({ p7: !this.state.p7 })}
containerStyle={styles.clearCheckbox}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
title={i18n.t('custom.interest.p8')}
checked={this.state.p8}
onPress={() => this.setState({ p8: !this.state.p8 })}
containerStyle={styles.clearCheckbox}
/>
<CheckBox
checkedColor={'#ea4f52'}
checkedColor={this.props.mainColor}
title={i18n.t('custom.interest.p9')}
checked={this.state.p9}
onPress={() => this.setState({ p9: !this.state.p9 })}