Before fixing release issue

This commit is contained in:
Brice Zele 2020-03-20 19:28:22 +01:00
parent 35bd407195
commit e28fecc645
61 changed files with 5539 additions and 4488 deletions

View File

@ -7,7 +7,7 @@
*/ */
import React, { Component } from 'react'; import React, { Component } from 'react';
import {Platform, StyleSheet, Text, View} from 'react-native'; import { Platform, StyleSheet, Text, View, YellowBox } from 'react-native';
import { createSwitchNavigator, createStackNavigator, createDrawerNavigator, createAppContainer, createBottomTabNavigator } from 'react-navigation'; import { createSwitchNavigator, createStackNavigator, createDrawerNavigator, createAppContainer, createBottomTabNavigator } from 'react-navigation';
import Connect from "./screens/login/Connect"; import Connect from "./screens/login/Connect";
import SplashScreen from "./screens/splashscreen/SplashScreen"; import SplashScreen from "./screens/splashscreen/SplashScreen";
@ -50,7 +50,9 @@ const instructions = Platform.select({
type Props = {}; type Props = {};
const theme = require("./utils/theme") const theme = require("./utils/theme")
class HomeScreen extends Component<Props> { class HomeScreen extends Component<Props> {
render() { render() {
return ( return (
<View style={styles.container}> <View style={styles.container}>
<Text style={styles.welcome}>Welcome to iLink World!</Text> <Text style={styles.welcome}>Welcome to iLink World!</Text>
@ -73,7 +75,8 @@ const AuthStack=createStackNavigator({
}, { }, {
headerMode: 'none' headerMode: 'none'
}) })
const AppStack=createDrawerNavigator({sta:createStackNavigator({ const AppStack = createDrawerNavigator({
sta: createStackNavigator({
home: Home, home: Home,
/* filtre:Filter, /* filtre:Filter,
network:Networks,*/ network:Networks,*/
@ -86,8 +89,10 @@ const AppStack=createDrawerNavigator({sta:createStackNavigator({
configuration: Configurations, configuration: Configurations,
about: About about: About
})},{contentComponent:OptionsMenu,headerMode: 'none',contentOptions:{activeTintColor: theme.accent}}) })
const AppAgentStack=createDrawerNavigator({sta:createStackNavigator({ }, { contentComponent: OptionsMenu, headerMode: 'none', contentOptions: { activeTintColor: theme.accent } })
const AppAgentStack = createDrawerNavigator({
sta: createStackNavigator({
home: Home, home: Home,
useraccount: UserAccount, useraccount: UserAccount,
Historique: Historique:
@ -128,16 +133,21 @@ const AppAgentStack=createDrawerNavigator({sta:createStackNavigator({
notificationview: Notifications, notificationview: Notifications,
configuration: Configurations, configuration: Configurations,
about: About about: About
})},{contentComponent:OptionsMenu, })
}, {
contentComponent: OptionsMenu,
backBehavior: "none", backBehavior: "none",
lazy: false, lazy: false,
headerMode: 'none',contentOptions:{activeTintColor:theme.accent}}) headerMode: 'none', contentOptions: { activeTintColor: theme.accent }
const AppAdministratorStack=createDrawerNavigator({sta:createStackNavigator({ })
const AppAdministratorStack = createDrawerNavigator({
sta: createStackNavigator({
home: Home, home: Home,
useraccount: UserAccount, useraccount: UserAccount,
Historique: { Historique: {
screen: createBottomTabNavigator({ screen: createBottomTabNavigator({
myDemand:MyHistory,OthersDemand:MyHistory}, { myDemand: MyHistory, OthersDemand: MyHistory
}, {
headerMode: "none", headerMode: "none",
header: null, header: null,
headerTitle: null, headerTitle: null,
@ -146,7 +156,8 @@ const AppAdministratorStack=createDrawerNavigator({sta:createStackNavigator({
labelStyle: { labelStyle: {
fontSize: 13, fontSize: 13,
}, },
}}), }
}),
navigationOptions: ({ navigation }) => ({ navigationOptions: ({ navigation }) => ({
header: null, header: null,
headerMode: 'none', headerMode: 'none',
@ -171,11 +182,15 @@ const AppAdministratorStack=createDrawerNavigator({sta:createStackNavigator({
configuration: Configurations, configuration: Configurations,
about: About about: About
})}, })
{contentComponent:OptionsMenu, },
{
contentComponent: OptionsMenu,
backBehavior: "none", backBehavior: "none",
headerMode: 'none'}) headerMode: 'none'
const AppSuperAdministrator=createDrawerNavigator({sta:createStackNavigator({ })
const AppSuperAdministrator = createDrawerNavigator({
sta: createStackNavigator({
home: Home, home: Home,
useraccount: UserAccount, useraccount: UserAccount,
Historique: { Historique: {
@ -189,7 +204,8 @@ const AppSuperAdministrator=createDrawerNavigator({sta:createStackNavigator({
fontSize: 13, fontSize: 13,
fontWeight: "bold" fontWeight: "bold"
}, },
}}), }
}),
navigationOptions: ({ navigation }) => ({ navigationOptions: ({ navigation }) => ({
title: I18n.t('CREDIT_MANAGE'), title: I18n.t('CREDIT_MANAGE'),
headerMode: "none", headerMode: "none",
@ -209,9 +225,12 @@ const AppSuperAdministrator=createDrawerNavigator({sta:createStackNavigator({
configuration: Configurations, configuration: Configurations,
about: About about: About
})},{contentComponent:OptionsMenu, })
}, {
contentComponent: OptionsMenu,
backBehavior: "none", backBehavior: "none",
headerMode: 'none'}) headerMode: 'none'
})
export const AppNavigator = createSwitchNavigator({ export const AppNavigator = createSwitchNavigator({
first: { first: {
screen: SplashScreen screen: SplashScreen

54
App.js
View File

@ -7,7 +7,7 @@
*/ */
import React, { Component } from 'react'; import React, { Component } from 'react';
import {Platform, StyleSheet, Text, View} from 'react-native'; import { Platform, StyleSheet, Text, View, YellowBox } from 'react-native';
import { createSwitchNavigator, createStackNavigator, createDrawerNavigator, createAppContainer, createBottomTabNavigator } from 'react-navigation'; import { createSwitchNavigator, createStackNavigator, createDrawerNavigator, createAppContainer, createBottomTabNavigator } from 'react-navigation';
import Connect from "./screens/login/Connect"; import Connect from "./screens/login/Connect";
import SplashScreen from "./screens/splashscreen/SplashScreen"; import SplashScreen from "./screens/splashscreen/SplashScreen";
@ -50,7 +50,10 @@ const instructions = Platform.select({
type Props = {}; type Props = {};
const theme = require("./utils/theme") const theme = require("./utils/theme")
class HomeScreen extends Component<Props> { class HomeScreen extends Component<Props> {
render() { render() {
return ( return (
<View style={styles.container}> <View style={styles.container}>
<Text style={styles.welcome}>Welcome to iLink World!</Text> <Text style={styles.welcome}>Welcome to iLink World!</Text>
@ -59,6 +62,8 @@ class HomeScreen extends Component<Props> {
</View> </View>
); );
} }
} }
const AuthStack = createStackNavigator({ const AuthStack = createStackNavigator({
login: Connect, login: Connect,
@ -73,7 +78,8 @@ const AuthStack=createStackNavigator({
}, { }, {
headerMode: 'none' headerMode: 'none'
}) })
const AppStack=createDrawerNavigator({sta:createStackNavigator({ const AppStack = createDrawerNavigator({
sta: createStackNavigator({
home: Home, home: Home,
/* filtre:Filter, /* filtre:Filter,
network:Networks,*/ network:Networks,*/
@ -86,8 +92,10 @@ const AppStack=createDrawerNavigator({sta:createStackNavigator({
configuration: Configurations, configuration: Configurations,
about: About about: About
})},{contentComponent:OptionsMenu,headerMode: 'none',contentOptions:{activeTintColor: theme.accent}}) })
const AppAgentStack=createDrawerNavigator({sta:createStackNavigator({ }, { contentComponent: OptionsMenu, headerMode: 'none', contentOptions: { activeTintColor: theme.accent } })
const AppAgentStack = createDrawerNavigator({
sta: createStackNavigator({
home: Home, home: Home,
useraccount: UserAccount, useraccount: UserAccount,
Historique: Historique:
@ -128,16 +136,21 @@ const AppAgentStack=createDrawerNavigator({sta:createStackNavigator({
notificationview: Notifications, notificationview: Notifications,
configuration: Configurations, configuration: Configurations,
about: About about: About
})},{contentComponent:OptionsMenu, })
}, {
contentComponent: OptionsMenu,
backBehavior: "none", backBehavior: "none",
lazy: false, lazy: false,
headerMode: 'none',contentOptions:{activeTintColor:theme.accent}}) headerMode: 'none', contentOptions: { activeTintColor: theme.accent }
const AppAdministratorStack=createDrawerNavigator({sta:createStackNavigator({ })
const AppAdministratorStack = createDrawerNavigator({
sta: createStackNavigator({
home: Home, home: Home,
useraccount: UserAccount, useraccount: UserAccount,
Historique: { Historique: {
screen: createBottomTabNavigator({ screen: createBottomTabNavigator({
myDemand:MyHistory,OthersDemand:MyHistory}, { myDemand: MyHistory, OthersDemand: MyHistory
}, {
headerMode: "none", headerMode: "none",
header: null, header: null,
headerTitle: null, headerTitle: null,
@ -146,7 +159,8 @@ const AppAdministratorStack=createDrawerNavigator({sta:createStackNavigator({
labelStyle: { labelStyle: {
fontSize: 13, fontSize: 13,
}, },
}}), }
}),
navigationOptions: ({ navigation }) => ({ navigationOptions: ({ navigation }) => ({
header: null, header: null,
headerMode: 'none', headerMode: 'none',
@ -171,11 +185,15 @@ const AppAdministratorStack=createDrawerNavigator({sta:createStackNavigator({
configuration: Configurations, configuration: Configurations,
about: About about: About
})}, })
{contentComponent:OptionsMenu, },
{
contentComponent: OptionsMenu,
backBehavior: "none", backBehavior: "none",
headerMode: 'none'}) headerMode: 'none'
const AppSuperAdministrator=createDrawerNavigator({sta:createStackNavigator({ })
const AppSuperAdministrator = createDrawerNavigator({
sta: createStackNavigator({
home: Home, home: Home,
useraccount: UserAccount, useraccount: UserAccount,
Historique: { Historique: {
@ -189,7 +207,8 @@ const AppSuperAdministrator=createDrawerNavigator({sta:createStackNavigator({
fontSize: 13, fontSize: 13,
fontWeight: "bold" fontWeight: "bold"
}, },
}}), }
}),
navigationOptions: ({ navigation }) => ({ navigationOptions: ({ navigation }) => ({
title: I18n.t('CREDIT_MANAGE'), title: I18n.t('CREDIT_MANAGE'),
headerMode: "none", headerMode: "none",
@ -209,9 +228,12 @@ const AppSuperAdministrator=createDrawerNavigator({sta:createStackNavigator({
configuration: Configurations, configuration: Configurations,
about: About about: About
})},{contentComponent:OptionsMenu, })
}, {
contentComponent: OptionsMenu,
backBehavior: "none", backBehavior: "none",
headerMode: 'none'}) headerMode: 'none'
})
export const AppNavigator = createSwitchNavigator({ export const AppNavigator = createSwitchNavigator({
first: { first: {
screen: SplashScreen screen: SplashScreen

View File

@ -128,7 +128,7 @@ android {
} }
defaultConfig { defaultConfig {
applicationId "com.ilink" applicationId "com.ilinktest"
minSdkVersion rootProject.ext.minSdkVersion minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1 versionCode 1

View File

@ -1,19 +1,32 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ilink"> xmlns:tools="http://schemas.android.com/tools"
package="com.ilinktest">
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-sdk tools:overrideLibrary="com.shazam.android.widget.text.reflow" />
<application <application
android:name=".MainApplication" android:name=".MainApplication"
android:label="@string/app_name" android:allowBackup="true"
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round" android:label="@string/app_name"
android:allowBackup="false" android:largeHeap="true"
android:theme="@style/AppTheme"> android:theme="@style/AppTheme">
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyCz4B9uUu3gkuu78Sf72gPWZ3t_qKqf5zg" />
<activity <activity
android:name=".MainActivity" android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize" android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:label="@string/app_name"
android:windowSoftInputMode="adjustResize"> android:windowSoftInputMode="adjustResize">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />

File diff suppressed because one or more lines are too long

View File

@ -1,15 +0,0 @@
package com.ilink;
import com.facebook.react.ReactActivity;
public class MainActivity extends ReactActivity {
/**
* Returns the name of the main component registered from JavaScript. This is used to schedule
* rendering of the component.
*/
@Override
protected String getMainComponentName() {
return "iLinkWorld";
}
}

View File

@ -0,0 +1,28 @@
package com.ilinktest;
import com.facebook.react.ReactActivity;
import com.facebook.react.ReactActivityDelegate;
import com.facebook.react.ReactRootView;
import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;
public class MainActivity extends ReactActivity {
/**
* Returns the name of the main component registered from JavaScript. This is used to schedule
* rendering of the component.
*/
@Override
protected String getMainComponentName() {
return "iLinkWorld";
}
@Override
protected ReactActivityDelegate createReactActivityDelegate() {
return new ReactActivityDelegate(this, getMainComponentName()) {
@Override
protected ReactRootView createRootView() {
return new RNGestureHandlerEnabledRootView(MainActivity.this);
}
};
}
}

View File

@ -1,4 +1,4 @@
package com.ilink; package com.ilinktest;
import android.app.Application; import android.app.Application;
import android.content.Context; import android.content.Context;

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 724 KiB

View File

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
<vector
android:height="108dp"
android:width="108dp"
android:viewportHeight="108"
android:viewportWidth="108"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#008577"
android:pathData="M0,0h108v108h-108z"/>
<path android:fillColor="#00000000" android:pathData="M9,0L9,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M19,0L19,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M29,0L29,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M39,0L39,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M49,0L49,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M59,0L59,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M69,0L69,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M79,0L79,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M89,0L89,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M99,0L99,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,9L108,9"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,19L108,19"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,29L108,29"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,39L108,39"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,49L108,49"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,59L108,59"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,69L108,69"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,79L108,79"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,89L108,89"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,99L108,99"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M19,29L89,29"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M19,39L89,39"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M19,49L89,49"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M19,59L89,59"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M19,69L89,69"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M19,79L89,79"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M29,19L29,89"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M39,19L39,89"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M49,19L49,89"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M59,19L59,89"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M69,19L69,89"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M79,19L79,89"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
</vector>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -2,6 +2,8 @@
"WELCOME": "Welcome to iLink World !", "WELCOME": "Welcome to iLink World !",
"HELP": "Help", "HELP": "Help",
"SIMPLE_USER": "Simple User", "SIMPLE_USER": "Simple User",
"ABOUT": "About us",
"ABOUT_TEXT": "iLink is an application that will facilitate your financial transactions near your location, and give you multiservice points near you.",
"GEOLOCATED_USER": "Geo located user", "GEOLOCATED_USER": "Geo located user",
"SUPERVISOR": "Supervisor", "SUPERVISOR": "Supervisor",
"AGENT": "Agent", "AGENT": "Agent",
@ -15,6 +17,7 @@
"ACCOUNT_CREATED_SUCCESS": "Account created successfully.\nYou will receive in a few minutes an email and an SMS with your informations.\nWe will redirect you to the login page", "ACCOUNT_CREATED_SUCCESS": "Account created successfully.\nYou will receive in a few minutes an email and an SMS with your informations.\nWe will redirect you to the login page",
"OR_BIG": "OR", "OR_BIG": "OR",
"FOR_NUMB": "For the ", "FOR_NUMB": "For the ",
"FILTER_DATE": "Filter date",
"SUBTITLE_ACTIVE_ACCOUNT": "Activate your account using the code that was sent on your email or phone number", "SUBTITLE_ACTIVE_ACCOUNT": "Activate your account using the code that was sent on your email or phone number",
"ASK_FOR_CREDIT": "Apply for credit", "ASK_FOR_CREDIT": "Apply for credit",
"ASK_CREDIT": "Credit applications", "ASK_CREDIT": "Credit applications",
@ -26,14 +29,15 @@
"ASK_FOR_SUPERVISOR1": "Ask to become a supervisor", "ASK_FOR_SUPERVISOR1": "Ask to become a supervisor",
"CREDIT_ASK_FROM_MEMBERS": "Credit requests from your members", "CREDIT_ASK_FROM_MEMBERS": "Credit requests from your members",
"ASK_MEMBERS": "Membership applications", "ASK_MEMBERS": "Membership applications",
"MY_ACCOUNT": "Mon compte", "MY_ACCOUNT": "My account",
"THE_ACCOUNT": "Le compte ", "THE_ACCOUNT": "Account ",
"NO_GEO_POINT_CODE": "You have no free geolocated point", "NO_GEO_POINT_CODE": "You have no free geolocated point",
"NO_DEMAND_ADHESION": "You have no membership request", "NO_DEMAND_ADHESION": "You have no membership request",
"ACTIVATED": "has been activated", "ACTIVATED": "has been activated",
"CREDIT_MANAGE": "Credit Management", "CREDIT_MANAGE": "Credit Management",
"GROUP_MANAGE": "Group Management", "GROUP_MANAGE": "Group Management",
"NOTIFICATIONS": "Notification", "NOTIFICATIONS": "Notification",
"NO_NOTIFICATION": "You haven't any notification",
"CONFIGURATIONS": "Configuration", "CONFIGURATIONS": "Configuration",
"LOGOUT": "Sign Out", "LOGOUT": "Sign Out",
"HINT_HOME_SEARCH": " Find a place, neighborhood or city ", "HINT_HOME_SEARCH": " Find a place, neighborhood or city ",
@ -176,6 +180,8 @@
"SEARCH_20": "20 km", "SEARCH_20": "20 km",
"SEARCH_25": "25 km", "SEARCH_25": "25 km",
"SEARCH": "Search", "SEARCH": "Search",
"SEE_VIDEO": "Watch the video",
"SEE_TUTO": "See the tutorial",
"DELETE": "Delete", "DELETE": "Delete",
"FREE": "Available", "FREE": "Available",
"SAVED": "Registered", "SAVED": "Registered",
@ -195,12 +201,14 @@
"PHONE_TRANSACTION": "Transaction number", "PHONE_TRANSACTION": "Transaction number",
"DEMAND_TEXT_FIRST_PART": "made a request for", "DEMAND_TEXT_FIRST_PART": "made a request for",
"REQUEST_SEND": "Request Sent", "REQUEST_SEND": "Request Sent",
"DEMAND_RECEIVE": "Requests received",
"TO_": "credit to", "TO_": "credit to",
"DEMAND_SEND_SUCCESFUL": "Your request has been sent successfully!", "DEMAND_SEND_SUCCESFUL": "Your request has been sent successfully!",
"SAVE_HISTORY": "Save history", "SAVE_HISTORY": "Save history",
"MAKE_REQUEST": "Make a request", "MAKE_REQUEST": "Make a request",
"DATE_WRONG": "The end date can not be earlier than the start date", "DATE_WRONG": "The end date can not be earlier than the start date",
"LOADING_DOTS": "Loads ...", "LOADING_DOTS": "Loading...",
"LOADING_PROGRESS": "Loading",
"EMPTY_LIST_REQUEST": "No request", "EMPTY_LIST_REQUEST": "No request",
"MEMBER_LIST": "List of members", "MEMBER_LIST": "List of members",
"FREE_CODE_LIST": "List of available codes", "FREE_CODE_LIST": "List of available codes",

View File

@ -1,7 +1,9 @@
{ {
"WELCOME": "Bienvenue sur iLink World !", "WELCOME": "Bienvenue sur iLink World !",
"HELP": "Aide à l'utilisation", "HELP": "Aide",
"SIMPLE_USER": "Utilisateur simple", "SIMPLE_USER": "Utilisateur simple",
"ABOUT": "A Propos",
"ABOUT_TEXT": "iLink est une application qui facilitera vos transactions financières près de votre position, et vous donne les points multiservices prêt de chez vous.",
"GEOLOCATED_USER": "Utilisateur géo-localisé", "GEOLOCATED_USER": "Utilisateur géo-localisé",
"SUPERVISOR": "Superviseur", "SUPERVISOR": "Superviseur",
"AGENT": "Agent", "AGENT": "Agent",
@ -15,6 +17,7 @@
"ACCOUNT_CREATED_SUCCESS": "Le compte a été crée avec succès.\nVous recevrez dans quelques minutes un email et un sms avec vos informations.\nNous allons vous rediriger vers la page de connexion", "ACCOUNT_CREATED_SUCCESS": "Le compte a été crée avec succès.\nVous recevrez dans quelques minutes un email et un sms avec vos informations.\nNous allons vous rediriger vers la page de connexion",
"OR_BIG": "OU", "OR_BIG": "OU",
"FOR_NUMB": "Pour le ", "FOR_NUMB": "Pour le ",
"FILTER_DATE": "Filtre de date",
"SUBTITLE_ACTIVE_ACCOUNT": "Activez votre compte à l'aide du code qui a été envoyé sur votre mail ou votre numéro de téléphone", "SUBTITLE_ACTIVE_ACCOUNT": "Activez votre compte à l'aide du code qui a été envoyé sur votre mail ou votre numéro de téléphone",
"ASK_FOR_CREDIT": "Demander du crédit", "ASK_FOR_CREDIT": "Demander du crédit",
"ASK_CREDIT": "Demandes de crédit", "ASK_CREDIT": "Demandes de crédit",
@ -34,6 +37,7 @@
"CREDIT_MANAGE": "Gestion de credit", "CREDIT_MANAGE": "Gestion de credit",
"GROUP_MANAGE": "Gestion du groupe", "GROUP_MANAGE": "Gestion du groupe",
"NOTIFICATIONS": "Notification", "NOTIFICATIONS": "Notification",
"NO_NOTIFICATION": "Vous n'avez aucune notification",
"CONFIGURATIONS": "Configuration", "CONFIGURATIONS": "Configuration",
"LOGOUT": "Déconnexion", "LOGOUT": "Déconnexion",
"HINT_HOME_SEARCH": " Chercher un lieu, quartier ou ville ", "HINT_HOME_SEARCH": " Chercher un lieu, quartier ou ville ",
@ -176,6 +180,8 @@
"SEARCH_20": "20 km", "SEARCH_20": "20 km",
"SEARCH_25": "25 km", "SEARCH_25": "25 km",
"SEARCH": "Rechercher", "SEARCH": "Rechercher",
"SEE_VIDEO": "Voir la vidéo",
"SEE_TUTO": "Voir le tutoriel",
"DELETE": "Supprimer", "DELETE": "Supprimer",
"FREE": "disponibles", "FREE": "disponibles",
"SAVED": "enregistrés", "SAVED": "enregistrés",
@ -195,12 +201,14 @@
"PHONE_TRANSACTION": "Numéro de transaction", "PHONE_TRANSACTION": "Numéro de transaction",
"DEMAND_TEXT_FIRST_PART": "a effectué une demande de ", "DEMAND_TEXT_FIRST_PART": "a effectué une demande de ",
"DEMANDE_SEND": " Demande Envoyée", "DEMANDE_SEND": " Demande Envoyée",
"DEMAND_RECEIVE": "Demandes reçues",
"TO_": " crédit auprès de ", "TO_": " crédit auprès de ",
"DEMAND_SEND_SUCCESFUL": "Votre demande a été envoyée avec succès !", "DEMAND_SEND_SUCCESFUL": "Votre demande a été envoyée avec succès !",
"SAVE_HISTORY": "Enregistrer l'historique", "SAVE_HISTORY": "Enregistrer l'historique",
"MAKE_REQUEST": "Faire une demande", "MAKE_REQUEST": "Faire une demande",
"DATE_WRONG": "La date de fin ne peut être antérieure à la date de début", "DATE_WRONG": "La date de fin ne peut être antérieure à la date de début",
"LOADING_DOTS": "Chargements...", "LOADING_DOTS": "Chargement...",
"LOADING_PROGRESS": "Chargement en cours",
"EMPTY_LIST_REQUEST": "Aucune demande", "EMPTY_LIST_REQUEST": "Aucune demande",
"MEMBER_LIST": "Liste des membres", "MEMBER_LIST": "Liste des membres",
"FREE_CODE_LIST": "Liste des codes disponibles", "FREE_CODE_LIST": "Liste des codes disponibles",

View File

@ -1,3 +1,3 @@
<resources> <resources>
<string name="app_name">iLink</string> <string name="app_name">iLink Test</string>
</resources> </resources>

View File

@ -3,7 +3,9 @@
<!-- Base application theme. --> <!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. --> <!-- Customize your theme here. -->
<item name="android:textColor">#000000</item> <item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:statusBarColor">@android:color/transparent</item>
</style> </style>
</resources> </resources>

View File

@ -2,8 +2,12 @@
* @format * @format
*/ */
import {AppRegistry} from 'react-native'; import { AppRegistry, YellowBox } from 'react-native';
import App from './App'; import App from './App';
import { name as appName } from './app.json'; import { name as appName } from './app.json';
YellowBox.ignoredYellowBox = ['Warning: Each', 'Warning: Failed'];
console.disableYellowBox = true;
AppRegistry.registerComponent(appName, () => App); AppRegistry.registerComponent(appName, () => App);

View File

@ -4,7 +4,7 @@ export const theme=require('./../utils/theme.json')
export default class BaseScreen extends Component { export default class BaseScreen extends Component {
constructor(props,needToCloseDrawer:Boolean=false){ constructor(props, needToCloseDrawer) {
super(props) super(props)
if (needToCloseDrawer) { if (needToCloseDrawer) {
/* this.props.navigator.toggleDrawer({ /* this.props.navigator.toggleDrawer({

View File

@ -58,7 +58,7 @@ export default class About extends React.Component {
</View> </View>
<View style={{ flex: 3 }}> <View style={{ flex: 3 }}>
<Button onPress={() => { Linking.openURL(videoUrl) }} style={{ width: responsiveWidth(40), backgroundColor: "white", borderRadius: responsiveWidth(20), alignSelf: "center", borderColor: "white" }} textStyle={{ color: theme.primary }}>{I18n.t('SEE_VIDEO')}</Button> <Button onPress={() => { Linking.openURL(videoUrl) }} style={{ width: responsiveWidth(40), backgroundColor: "white", borderRadius: responsiveWidth(20), alignSelf: "center", borderColor: "white" }} textStyle={{ color: theme.primary }}>{I18n.t('SEE_VIDEO')}</Button>
<Button style={{ width: responsiveWidth(40), backgroundColor: "transparent", borderRadius: responsiveWidth(20), alignSelf: "center", borderColor: "white" }} textStyle={{ color: "white" }}><View style={{ justifyContent: "center", alignContent: "center" }}><Text style={{ color: "white", fontWeight: "bold" }}>{I18n.t("SEE_TUTO")}</Text><Text style={{ color: "white" }}>{I18n.t('UNAVAILABLE')}</Text></View></Button> <Button style={{ width: responsiveWidth(40), backgroundColor: "transparent", borderRadius: responsiveWidth(20), alignSelf: "center", borderColor: "white" }} textStyle={{ color: "white" }}><View style={{ justifyContent: "center", alignContent: "center" }}><Text style={{ color: "white" }}>{I18n.t('SEE_TUTO')}</Text></View></Button>
</View> </View>
<View style={{ flexDirection: "row", flex: 0.3, width: responsiveWidth(95), height: responsiveHeight(100), justifyContent: "space-between", alignItems: "stretch" }}> <View style={{ flexDirection: "row", flex: 0.3, width: responsiveWidth(95), height: responsiveHeight(100), justifyContent: "space-between", alignItems: "stretch" }}>
<Text style={{ color: "white", fontWeight: "bold" }}>Version 1.0.0</Text> <Text style={{ color: "white", fontWeight: "bold" }}>Version 1.0.0</Text>

View File

@ -1,5 +1,5 @@
import React, { Component } from 'react' import React, { Component } from 'react'
import { StyleSheet, Text, View, Alert } from 'react-native' import { StyleSheet, Text, View, Alert, Platform, StatusBar } from 'react-native'
import BaseScreen from "../BaseScreen"; import BaseScreen from "../BaseScreen";
import { responsiveWidth, responsiveHeight } from 'react-native-responsive-dimensions' import { responsiveWidth, responsiveHeight } from 'react-native-responsive-dimensions'
import { Dropdown } from 'react-native-material-dropdown' import { Dropdown } from 'react-native-material-dropdown'
@ -13,22 +13,26 @@ require("./../../utils/Translations")
import { IlinkEmitter } from "./../../utils/events" import { IlinkEmitter } from "./../../utils/events"
import { Header } from "react-native-elements"; import { Header } from "react-native-elements";
import Icon from 'react-native-vector-icons/MaterialIcons'; import Icon from 'react-native-vector-icons/MaterialIcons';
import { SafeAreaView } from 'react-navigation';
export default class Configurations extends BaseScreen { export default class Configurations extends BaseScreen {
static navigationOptions = { static navigationOptions = {
headerTItle: I18n.t('CONFIGURATIONS'), headerTitle: I18n.t('CONFIGURATIONS'),
drawerIcon: ({ tintColor }) => ( drawerIcon: ({ tintColor }) => (
<Icon <Icon
name={'settings'} name={'settings'}
size={24} size={24}
/> />
), )
}; };
constructor(props) { constructor(props) {
super(props, true) super(props, true)
this.state = this.initState() this.state = this.initState()
this.configuration = new Configuration(); this.configuration = new Configuration();
if (Platform.OS === 'android') {
SafeAreaView.setStatusBarHeight(StatusBar.currentHeight);
}
} }
initState() { initState() {
@ -79,7 +83,7 @@ export default class Configurations extends BaseScreen {
const styles = StyleSheet.create({ const styles = StyleSheet.create({
container: { container: {
flex: 1, flex: 1,
backgroundColor: 'white' backgroundColor: 'white',
}, },
}) })

View File

@ -55,4 +55,3 @@ export class ListOptions extends Component{
marginBottom: 5, marginBottom: 5,
}, },
}); });

View File

@ -15,7 +15,7 @@ require("./../../utils/Translations");
import I18n from 'react-native-i18n' import I18n from 'react-native-i18n'
const route = require('./../../route.json') const route = require('./../../route.json')
import LottieView from 'lottie-react-native'; // if you have "esModuleInterop": true import LottieView from 'lottie-react-native'; // if you have "esModuleInterop": true
import { IndicatorViewPager } from 'react-native-best-viewpager'; import { IndicatorViewPager, PagerTabIndicator } from 'react-native-best-viewpager';
import { Card, CardTitle, CardContent, CardAction, CardButton, CardImage } from 'react-native-material-cards' import { Card, CardTitle, CardContent, CardAction, CardButton, CardImage } from 'react-native-material-cards'
let moment = require('moment-timezone'); let moment = require('moment-timezone');

View File

@ -100,14 +100,16 @@ export class HistoryItemSectionned extends PureComponent{
backgroundColor: theme.accent, backgroundColor: theme.accent,
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
flexDirection:'row',flex:1,height:70,width:responsiveWidth(100)}}> flexDirection: 'row', flex: 1, height: 70, width: responsiveWidth(100)
}}>
<View style={{ <View style={{
height: 70, height: 70,
justifyContent: 'center', justifyContent: 'center',
flex: 1, flex: 1,
width: responsiveWidth(100), width: responsiveWidth(100),
}}> }}>
<Text style={{fontWeight: 'bold', <Text style={{
fontWeight: 'bold',
marginLeft: 20, marginLeft: 20,
fontSize: 20, fontSize: 20,
color: 'white' color: 'white'

View File

@ -70,7 +70,8 @@ const defaultProps = {
color={tintColor} color={tintColor}
/> />
), ),
}}; }
};
static defaultProps = { static defaultProps = {
draggableRange: { draggableRange: {
top: responsiveHeight(30), top: responsiveHeight(30),
@ -316,12 +317,14 @@ const defaultProps = {
, ,
[ [
{ text: I18n.t("NO"), onPress: () => { BackHandler.exitApp() } }, { text: I18n.t("NO"), onPress: () => { BackHandler.exitApp() } },
{text:I18n.t("YES"),onPress:()=>{ {
text: I18n.t("YES"), onPress: () => {
if (pays !== null && pays !== undefined) if (pays !== null && pays !== undefined)
this.getNetworks(pays) this.getNetworks(pays)
else else
this.requestCameraPermission() this.requestCameraPermission()
}} }
}
], ],
{ cancelable: false } { cancelable: false }
@ -338,17 +341,20 @@ const defaultProps = {
, ,
[ [
{ text: I18n.t("NO"), onPress: () => { BackHandler.exitApp() } }, { text: I18n.t("NO"), onPress: () => { BackHandler.exitApp() } },
{text:I18n.t("YES"),onPress:()=>{ {
text: I18n.t("YES"), onPress: () => {
if (pays !== null && pays !== undefined) if (pays !== null && pays !== undefined)
this.getNetworks(pays) this.getNetworks(pays)
else else
this.requestCameraPermission() this.requestCameraPermission()
}} }
}
], ],
{ cancelable: false } { cancelable: false }
) }) )
})
} else { } else {
@ -360,10 +366,12 @@ const defaultProps = {
, ,
[ [
{ text: I18n.t("NO"), onPress: () => { BackHandler.exitApp() } }, { text: I18n.t("NO"), onPress: () => { BackHandler.exitApp() } },
{text:I18n.t("YES"),onPress:()=>{ {
text: I18n.t("YES"), onPress: () => {
this.requestCameraPermission() this.requestCameraPermission()
}} }
}
], ],
{ cancelable: false } { cancelable: false }
) )
@ -424,9 +432,11 @@ const defaultProps = {
, ,
[ [
{ text: I18n.t("NO"), onPress: () => { BackHandler.exitApp() } }, { text: I18n.t("NO"), onPress: () => { BackHandler.exitApp() } },
{text:I18n.t("YES"),onPress:()=>{ {
text: I18n.t("YES"), onPress: () => {
this.getPosition(options) this.getPosition(options)
}} }
}
], ],
{ cancelable: false } { cancelable: false }
@ -439,9 +449,11 @@ const defaultProps = {
, ,
[ [
{ text: I18n.t("NO"), onPress: () => { BackHandler.exitApp() } }, { text: I18n.t("NO"), onPress: () => { BackHandler.exitApp() } },
{text:I18n.t("YES"),onPress:()=>{ {
text: I18n.t("YES"), onPress: () => {
this.getPosition(options) this.getPosition(options)
}} }
}
], ],
{ cancelable: false } { cancelable: false }
@ -647,10 +659,12 @@ const defaultProps = {
return (<View />) return (<View />)
} else } else
return (<View style={{ flexDirection: "row" }}> return (<View style={{ flexDirection: "row" }}>
<View style={{backgroundColor:"#FFFFFFA0", <View style={{
backgroundColor: "#FFFFFFA0",
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
alignSelf:'center'}}> alignSelf: 'center'
}}>
<Text>{this.state.markers.length + " " + (this.state.currentNetworkSize === 0 ? "" : "/" + this.state.currentNetworkSize)} </Text> <Text>{this.state.markers.length + " " + (this.state.currentNetworkSize === 0 ? "" : "/" + this.state.currentNetworkSize)} </Text>
</View> </View>
@ -1215,7 +1229,8 @@ return(<View>
renderInner() { renderInner() {
return (<View style={{ flex: 1, backgroundColor: "green" }}> return (<View style={{ flex: 1, backgroundColor: "green" }}>
<Text>Freud junior</Text> <Text>Freud junior</Text>
</View>) } </View>)
}
markerView() { markerView() {
if (this.state.currentMarker) return this._renderMarker2() if (this.state.currentMarker) return this._renderMarker2()
} }
@ -1242,8 +1257,7 @@ return(<View>
color={theme.primary} color={theme.primary}
style={{ backgroundColor: "white" }} style={{ backgroundColor: "white" }}
onPress={()=> onPress={() => {
{
if (!this.state.showFilterDistance) { if (!this.state.showFilterDistance) {
this.bottomSheetRef.snapTo(2) this.bottomSheetRef.snapTo(2)
this.setState({ showFilterDistance: true }) this.setState({ showFilterDistance: true })
@ -1306,7 +1320,8 @@ return(<View>
backgroundColor: "white", backgroundColor: "white",
width: responsiveWidth(26), width: responsiveWidth(26),
height: 36, height: 36,
marginLeft: 5, borderRadius: 100, borderColor: "#9e9e9e", justifyContent: 'center' }} marginLeft: 5, borderRadius: 100, borderColor: "#9e9e9e", justifyContent: 'center'
}}
onPress={() => this.callItem(marker)} onPress={() => this.callItem(marker)}
> >
<View <View
@ -1322,7 +1337,8 @@ return(<View>
style={{ fontSize: 15, color: '#9e9e9e', marginLeft: responsiveWidth(2) }} style={{ fontSize: 15, color: '#9e9e9e', marginLeft: responsiveWidth(2) }}
>{I18n.t("CALL")}</Text></View> >{I18n.t("CALL")}</Text></View>
</Button> </Button>
</View>)} </View>)
}
else return (<View style={{ flex: 2, flexDirection: 'row', justifyContent: 'flex-end', marginEnd: 20 }}> else return (<View style={{ flex: 2, flexDirection: 'row', justifyContent: 'flex-end', marginEnd: 20 }}>
</View>) </View>)
@ -1380,7 +1396,8 @@ return(<View>
} else { } else {
this.getPosition(); this.getPosition();
this.watchLocation(); this.watchLocation();
}} }
}
} }
}) })
@ -1844,13 +1861,15 @@ return(<View>
, ,
[ [
{ text: I18n.t("NO"), onPress: () => { BackHandler.exitApp() } }, { text: I18n.t("NO"), onPress: () => { BackHandler.exitApp() } },
{text:I18n.t("YES"),onPress:()=>{ {
text: I18n.t("YES"), onPress: () => {
this.setState({ loadingDialog: true }) this.setState({ loadingDialog: true })
if (dial_code !== null && dial_code !== undefined) if (dial_code !== null && dial_code !== undefined)
this.retrieveAllPoint(dial_code) this.retrieveAllPoint(dial_code)
else else
this.requestCameraPermission() this.requestCameraPermission()
}} }
}
], ],
{ cancelable: false } { cancelable: false }
@ -1869,14 +1888,16 @@ return(<View>
, ,
[ [
{ text: I18n.t("NO"), onPress: () => { BackHandler.exitApp() } }, { text: I18n.t("NO"), onPress: () => { BackHandler.exitApp() } },
{text:I18n.t("YES"),onPress:()=>{ {
text: I18n.t("YES"), onPress: () => {
if (this.state.allpoint.length <= 0) { if (this.state.allpoint.length <= 0) {
this.setState({ loadingDialog: true }) this.setState({ loadingDialog: true })
if (dial_code !== null && dial_code !== undefined) if (dial_code !== null && dial_code !== undefined)
this.retrieveAllPoint(dial_code) this.retrieveAllPoint(dial_code)
else else
this.requestCameraPermission() this.requestCameraPermission()
}} }
}
} }
], ],
@ -1909,10 +1930,12 @@ return(<View>
/> />
</Button> </Button>
<View style={{backgroundColor:"#FFFFFFA0", width:responsiveWidth(20),height:30,borderRadius:12, <View style={{
backgroundColor: "#FFFFFFA0", width: responsiveWidth(20), height: 30, borderRadius: 12,
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
alignSelf:'center'}}> alignSelf: 'center'
}}>
<Text>{(this.state.markers.length === 0 ? this.state.markers.length : (this.state.markers.length))} / {this.state.currentNetworkSize} </Text> <Text>{(this.state.markers.length === 0 ? this.state.markers.length : (this.state.markers.length))} / {this.state.currentNetworkSize} </Text>
</View> </View>
</View>) </View>)
@ -1935,14 +1958,16 @@ return(<View>
.filter((mark, index) => { .filter((mark, index) => {
const location = { longitude: parseFloat(mark.longitude), latitude: parseFloat(mark.latitude) } const location = { longitude: parseFloat(mark.longitude), latitude: parseFloat(mark.latitude) }
return geolib.getDistance(myPosition, location) <= (value * 1000) return geolib.getDistance(myPosition, location) <= (value * 1000)
&& mark.network===filternetwork.name}) && mark.network === filternetwork.name
})
.slice(0, (page + 1) * this.state.pas) .slice(0, (page + 1) * this.state.pas)
try { try {
const currentNetwork = allpoint const currentNetwork = allpoint
.filter((mark, index) => { .filter((mark, index) => {
const location = { longitude: parseFloat(mark.longitude), latitude: parseFloat(mark.latitude) } const location = { longitude: parseFloat(mark.longitude), latitude: parseFloat(mark.latitude) }
return geolib.getDistance(myPosition, location) <= (value * 1000) return geolib.getDistance(myPosition, location) <= (value * 1000)
&& mark.network===filternetwork.name}) && mark.network === filternetwork.name
})
this.setState({ currentNetworkSize: currentNetwork.length, currentNetworkMarkers: currentNetwork }) this.setState({ currentNetworkSize: currentNetwork.length, currentNetworkMarkers: currentNetwork })
} catch (e) { } catch (e) {
console.debug("after " + e.message) console.debug("after " + e.message)
@ -2041,8 +2066,11 @@ return(<View>
, ,
[ [
{ text: I18n.t("NO"), onPress: () => { BackHandler.exitApp() } }, { text: I18n.t("NO"), onPress: () => { BackHandler.exitApp() } },
{text:I18n.t("YES"),onPress:()=>{ {
this.treatPosition(myPosition) }} text: I18n.t("YES"), onPress: () => {
this.treatPosition(myPosition)
}
}
], ],
{ cancelable: false } { cancelable: false }
@ -2057,8 +2085,11 @@ return(<View>
, ,
[ [
{ text: I18n.t("NO"), onPress: () => { BackHandler.exitApp() } }, { text: I18n.t("NO"), onPress: () => { BackHandler.exitApp() } },
{text:I18n.t("YES"),onPress:()=>{ {
this.treatPosition(myPosition) }} text: I18n.t("YES"), onPress: () => {
this.treatPosition(myPosition)
}
}
], ],
{ cancelable: false } { cancelable: false }
@ -2073,8 +2104,11 @@ return(<View>
, ,
[ [
{ text: I18n.t("NO"), onPress: () => { BackHandler.exitApp() } }, { text: I18n.t("NO"), onPress: () => { BackHandler.exitApp() } },
{text:I18n.t("YES"),onPress:()=>{ {
this.treatPosition(myPosition) }} text: I18n.t("YES"), onPress: () => {
this.treatPosition(myPosition)
}
}
], ],
{ cancelable: false } { cancelable: false }

View File

@ -107,7 +107,8 @@ componentWillReceiveProps(nextProps: Readonly<P>, nextContext: any): void {
setTimeout(() => { setTimeout(() => {
if (!this.state.roadReady) { if (!this.state.roadReady) {
this.setState({ roadReady: true }) this.setState({ roadReady: true })
this.props.onNeedRoadError()} this.props.onNeedRoadError()
}
}, 10000) }, 10000)
return (<MapViewDirections return (<MapViewDirections
@ -117,11 +118,13 @@ componentWillReceiveProps(nextProps: Readonly<P>, nextContext: any): void {
strokeWidth={3} strokeWidth={3}
onReady={(data) => { onReady={(data) => {
this.setState({ roadReady: true }) this.setState({ roadReady: true })
this.props.onNeedRoadReady(data)} this.props.onNeedRoadReady(data)
}
} }
onError={() => { onError={() => {
this.setState({ roadReady: true }) this.setState({ roadReady: true })
this.props.onNeedRoadError()} this.props.onNeedRoadError()
}
} }
strokeColor={theme.primary} strokeColor={theme.primary}
/>) />)
@ -142,7 +145,8 @@ componentWillReceiveProps(nextProps: Readonly<P>, nextContext: any): void {
title={I18n.t("YOUR_THERE")} title={I18n.t("YOUR_THERE")}
data={{ data={{
longitude: myPosition.longitude, longitude: myPosition.longitude,
latitude:myPosition.latitude}} latitude: myPosition.latitude
}}
/> />
</CopilotStep> </CopilotStep>
) )
@ -154,7 +158,8 @@ componentWillReceiveProps(nextProps: Readonly<P>, nextContext: any): void {
title={I18n.t("YOUR_THERE")} title={I18n.t("YOUR_THERE")}
data={{ data={{
longitude: myPosition.longitude, longitude: myPosition.longitude,
latitude:myPosition.latitude}} latitude: myPosition.latitude
}}
/>) />)
} }
} }

View File

@ -53,7 +53,8 @@ export default class OptionsMenu extends Component<Props> {
readUser().then((result) => { readUser().then((result) => {
setTimeout(() => { setTimeout(() => {
this.updateUser(result); this.updateUser(result);
}, 3000)}) }, 3000)
})
} else { } else {
let code = DeviceInfo.getDeviceLocale(); let code = DeviceInfo.getDeviceLocale();
I18n.locale = code.toLowerCase() I18n.locale = code.toLowerCase()
@ -193,8 +194,7 @@ export default class OptionsMenu extends Component<Props> {
break; break;
} }
}else } else {
{
menu = this.getUserMenu(); menu = this.getUserMenu();
} }
} }
@ -218,7 +218,8 @@ export default class OptionsMenu extends Component<Props> {
<TouchableOpacity onPress={() => { <TouchableOpacity onPress={() => {
this.props.navigation.toggleDrawer(); this.props.navigation.toggleDrawer();
this.setState({ currentId: item.id }) this.setState({ currentId: item.id })
this.props.navigation.navigate(item)}} this.props.navigation.navigate(item)
}}
> >
<View <View
style={items.content} style={items.content}
@ -232,7 +233,9 @@ export default class OptionsMenu extends Component<Props> {
fontSize: 16, fontSize: 16,
}}>{this.getNameItems(item)} }}>{this.getNameItems(item)}
</Text> </Text>
</View></TouchableOpacity>)}}; </View></TouchableOpacity>)
}
};
_onPress = ((item) => { _onPress = ((item) => {
this.setState({ currentId: item.id }) this.setState({ currentId: item.id })
@ -411,7 +414,7 @@ export default class OptionsMenu extends Component<Props> {
break; break;
case 'addNetwork': icon = I18n.t('ADD_NETWORK') case 'addNetwork': icon = I18n.t('ADD_NETWORK')
break break
case 'about':icon=I18n.t('ABOUT_') case 'about': icon = I18n.t('ABOUT')
} }
return icon; return icon;
} }
@ -452,7 +455,8 @@ export default class OptionsMenu extends Component<Props> {
<Text style={styles.headerTitle}>{surname}</Text> <Text style={styles.headerTitle}>{surname}</Text>
<Text style={styles.headerPhone}>{this.state.user ? "" + this.state.user.phone : ""}</Text> <Text style={styles.headerPhone}>{this.state.user ? "" + this.state.user.phone : ""}</Text>
</View> </View>
<ScrollView style={{flex:1,height:responsiveHeight(40) <ScrollView style={{
flex: 1, height: responsiveHeight(40)
}} > }} >
<SafeAreaView forceInset={{ top: 'always', horizontal: 'never' }}> <SafeAreaView forceInset={{ top: 'always', horizontal: 'never' }}>
{ {
@ -481,12 +485,14 @@ export default class OptionsMenu extends Component<Props> {
[ [
{}, {},
{ text: I18n.t('NO'), onPress: () => console.log('Cancel Pressed'), style: 'cancel' }, { text: I18n.t('NO'), onPress: () => console.log('Cancel Pressed'), style: 'cancel' },
{text: I18n.t('YES'), onPress: () =>{ {
text: I18n.t('YES'), onPress: () => {
disconnect().then(() => { disconnect().then(() => {
IlinkEmitter.emit("userdisconnect"); IlinkEmitter.emit("userdisconnect");
this.props.navigation.navigate("Auth") this.props.navigation.navigate("Auth")
}) })
}}, }
},
], ],
{ cancelable: false } { cancelable: false }
) )

View File

@ -52,7 +52,8 @@ export default class OptionsMenu extends Component<Props> {
readUser().then((result) => { readUser().then((result) => {
setTimeout(() => { setTimeout(() => {
this.updateUser(result); this.updateUser(result);
}, 3000)}) }, 3000)
})
} else { } else {
RNDeviceInformation.getDeviceCountryCode().then((code) => { RNDeviceInformation.getDeviceCountryCode().then((code) => {
I18n.locale = code.toLowerCase() I18n.locale = code.toLowerCase()
@ -193,8 +194,7 @@ export default class OptionsMenu extends Component<Props> {
break; break;
} }
}else } else {
{
menu = this.getUserMenu(); menu = this.getUserMenu();
} }
} }
@ -218,7 +218,8 @@ export default class OptionsMenu extends Component<Props> {
<TouchableOpacity onPress={() => { <TouchableOpacity onPress={() => {
this.props.navigation.toggleDrawer(); this.props.navigation.toggleDrawer();
this.setState({ currentId: item.id }) this.setState({ currentId: item.id })
this.props.navigation.navigate(item)}} this.props.navigation.navigate(item)
}}
> >
<View <View
style={items.content} style={items.content}
@ -232,7 +233,9 @@ export default class OptionsMenu extends Component<Props> {
fontSize: 16, fontSize: 16,
}}>{this.getNameItems(item)} }}>{this.getNameItems(item)}
</Text> </Text>
</View></TouchableOpacity>)}}; </View></TouchableOpacity>)
}
};
_onPress = ((item) => { _onPress = ((item) => {
this.setState({ currentId: item.id }) this.setState({ currentId: item.id })
@ -452,7 +455,8 @@ export default class OptionsMenu extends Component<Props> {
<Text style={styles.headerTitle}>{surname}</Text> <Text style={styles.headerTitle}>{surname}</Text>
<Text style={styles.headerPhone}>{this.state.user ? "" + this.state.user.phone : ""}</Text> <Text style={styles.headerPhone}>{this.state.user ? "" + this.state.user.phone : ""}</Text>
</View> </View>
<SafeAreaView style={{flex:1, <SafeAreaView style={{
flex: 1,
}} forceInset={{ top: 'always', horizontal: 'never' }}> }} forceInset={{ top: 'always', horizontal: 'never' }}>
{ {
this.state.items && Object.keys(this.state.items).map((item, key) => { this.state.items && Object.keys(this.state.items).map((item, key) => {
@ -479,12 +483,14 @@ export default class OptionsMenu extends Component<Props> {
[ [
{}, {},
{ text: I18n.t('NO'), onPress: () => console.log('Cancel Pressed'), style: 'cancel' }, { text: I18n.t('NO'), onPress: () => console.log('Cancel Pressed'), style: 'cancel' },
{text: I18n.t('YES'), onPress: () =>{ {
text: I18n.t('YES'), onPress: () => {
disconnect().then(() => { disconnect().then(() => {
IlinkEmitter.emit("userdisconnect"); IlinkEmitter.emit("userdisconnect");
this.props.navigation.navigate("Auth") this.props.navigation.navigate("Auth")
}) })
}}, }
},
], ],
{ cancelable: false } { cancelable: false }
) )

View File

@ -22,7 +22,7 @@ export default class SplashScreen extends Component{
drawUnderNavBar: true, drawUnderNavBar: true,
navBarHidden: true, navBarHidden: true,
drawUnderStatusBar: false, drawUnderStatusBar: false,
statusBarHidden: true, statusBarHidden: false,
statusBarTextColorScheme: 'light', statusBarTextColorScheme: 'light',
}; };
static options(passProps) { static options(passProps) {
@ -184,7 +184,8 @@ export default class SplashScreen extends Component{
} }
setTimeout(() => { setTimeout(() => {
this.workUserResult(result) this.workUserResult(result)
}, 3000)}) }, 3000)
})
} else { } else {
const code = DeviceInfo.getDeviceLocale(); const code = DeviceInfo.getDeviceLocale();
console.warn(code) console.warn(code)

View File

@ -2,6 +2,8 @@
"WELCOME": "Welcome to iLink World !", "WELCOME": "Welcome to iLink World !",
"HELP": "Help", "HELP": "Help",
"SIMPLE_USER": "Simple User", "SIMPLE_USER": "Simple User",
"ABOUT": "About us",
"ABOUT_TEXT": "iLink is an application that will facilitate your financial transactions near your location, and give you multiservice points near you.",
"GEOLOCATED_USER": "Geo located user", "GEOLOCATED_USER": "Geo located user",
"SUPERVISOR": "Supervisor", "SUPERVISOR": "Supervisor",
"AGENT": "Agent", "AGENT": "Agent",
@ -15,6 +17,7 @@
"ACCOUNT_CREATED_SUCCESS": "Account created successfully.\nYou will receive in a few minutes an email and an SMS with your informations.\nWe will redirect you to the login page", "ACCOUNT_CREATED_SUCCESS": "Account created successfully.\nYou will receive in a few minutes an email and an SMS with your informations.\nWe will redirect you to the login page",
"OR_BIG": "OR", "OR_BIG": "OR",
"FOR_NUMB": "For the ", "FOR_NUMB": "For the ",
"FILTER_DATE": "Filter date",
"SUBTITLE_ACTIVE_ACCOUNT": "Activate your account using the code that was sent on your email or phone number", "SUBTITLE_ACTIVE_ACCOUNT": "Activate your account using the code that was sent on your email or phone number",
"ASK_FOR_CREDIT": "Apply for credit", "ASK_FOR_CREDIT": "Apply for credit",
"ASK_CREDIT": "Credit applications", "ASK_CREDIT": "Credit applications",
@ -26,14 +29,15 @@
"ASK_FOR_SUPERVISOR1": "Ask to become a supervisor", "ASK_FOR_SUPERVISOR1": "Ask to become a supervisor",
"CREDIT_ASK_FROM_MEMBERS": "Credit requests from your members", "CREDIT_ASK_FROM_MEMBERS": "Credit requests from your members",
"ASK_MEMBERS": "Membership applications", "ASK_MEMBERS": "Membership applications",
"MY_ACCOUNT": "Mon compte", "MY_ACCOUNT": "My account",
"THE_ACCOUNT": "Le compte ", "THE_ACCOUNT": "Account ",
"NO_GEO_POINT_CODE": "You have no free geolocated point", "NO_GEO_POINT_CODE": "You have no free geolocated point",
"NO_DEMAND_ADHESION": "You have no membership request", "NO_DEMAND_ADHESION": "You have no membership request",
"ACTIVATED": "has been activated", "ACTIVATED": "has been activated",
"CREDIT_MANAGE": "Credit Management", "CREDIT_MANAGE": "Credit Management",
"GROUP_MANAGE": "Group Management", "GROUP_MANAGE": "Group Management",
"NOTIFICATIONS": "Notification", "NOTIFICATIONS": "Notification",
"NO_NOTIFICATION": "You haven't any notification",
"CONFIGURATIONS": "Configuration", "CONFIGURATIONS": "Configuration",
"LOGOUT": "Sign Out", "LOGOUT": "Sign Out",
"HINT_HOME_SEARCH": " Find a place, neighborhood or city ", "HINT_HOME_SEARCH": " Find a place, neighborhood or city ",
@ -55,6 +59,7 @@
"CREDIT": "Credit", "CREDIT": "Credit",
"NEXT": "Next", "NEXT": "Next",
"SPONSOR_CODE": "Sponsor Code", "SPONSOR_CODE": "Sponsor Code",
"SOLDE_UNVAIBLE": "solde unavailable",
"TEXT_BIG_CREATE_AGENT_1": "Register as Agent", "TEXT_BIG_CREATE_AGENT_1": "Register as Agent",
"EMAIL": "Email", "EMAIL": "Email",
"COUNTRY": "Country", "COUNTRY": "Country",
@ -176,6 +181,8 @@
"SEARCH_20": "20 km", "SEARCH_20": "20 km",
"SEARCH_25": "25 km", "SEARCH_25": "25 km",
"SEARCH": "Search", "SEARCH": "Search",
"SEE_VIDEO": "Watch the video",
"SEE_TUTO": "See the tutorial",
"DELETE": "Delete", "DELETE": "Delete",
"FREE": "Available", "FREE": "Available",
"SAVED": "Registered", "SAVED": "Registered",
@ -195,12 +202,14 @@
"PHONE_TRANSACTION": "Transaction number", "PHONE_TRANSACTION": "Transaction number",
"DEMAND_TEXT_FIRST_PART": "made a request for", "DEMAND_TEXT_FIRST_PART": "made a request for",
"REQUEST_SEND": "Request Sent", "REQUEST_SEND": "Request Sent",
"DEMAND_RECEIVE": "Requests received",
"TO_": "credit to", "TO_": "credit to",
"DEMAND_SEND_SUCCESFUL": "Your request has been sent successfully!", "DEMAND_SEND_SUCCESFUL": "Your request has been sent successfully!",
"SAVE_HISTORY": "Save history", "SAVE_HISTORY": "Save history",
"MAKE_REQUEST": "Make a request", "MAKE_REQUEST": "Make a request",
"DATE_WRONG": "The end date can not be earlier than the start date", "DATE_WRONG": "The end date can not be earlier than the start date",
"LOADING_DOTS": "Loads ...", "LOADING_DOTS": "Loading...",
"LOADING_PROGRESS": "Loading",
"EMPTY_LIST_REQUEST": "No request", "EMPTY_LIST_REQUEST": "No request",
"MEMBER_LIST": "List of members", "MEMBER_LIST": "List of members",
"FREE_CODE_LIST": "List of available codes", "FREE_CODE_LIST": "List of available codes",

View File

@ -1,7 +1,9 @@
{ {
"WELCOME": "Bienvenue sur iLink World !", "WELCOME": "Bienvenue sur iLink World !",
"HELP": "Aide à l'utilisation", "HELP": "Aide",
"SIMPLE_USER": "Utilisateur simple", "SIMPLE_USER": "Utilisateur simple",
"ABOUT": "A Propos",
"ABOUT_TEXT": "iLink est une application qui facilitera vos transactions financières près de votre position, et vous donne les points multiservices prêt de chez vous.",
"GEOLOCATED_USER": "Utilisateur géo-localisé", "GEOLOCATED_USER": "Utilisateur géo-localisé",
"SUPERVISOR": "Superviseur", "SUPERVISOR": "Superviseur",
"AGENT": "Agent", "AGENT": "Agent",
@ -15,6 +17,7 @@
"ACCOUNT_CREATED_SUCCESS": "Le compte a été crée avec succès.\nVous recevrez dans quelques minutes un email et un sms avec vos informations.\nNous allons vous rediriger vers la page de connexion", "ACCOUNT_CREATED_SUCCESS": "Le compte a été crée avec succès.\nVous recevrez dans quelques minutes un email et un sms avec vos informations.\nNous allons vous rediriger vers la page de connexion",
"OR_BIG": "OU", "OR_BIG": "OU",
"FOR_NUMB": "Pour le ", "FOR_NUMB": "Pour le ",
"FILTER_DATE": "Filtre de date",
"SUBTITLE_ACTIVE_ACCOUNT": "Activez votre compte à l'aide du code qui a été envoyé sur votre mail ou votre numéro de téléphone", "SUBTITLE_ACTIVE_ACCOUNT": "Activez votre compte à l'aide du code qui a été envoyé sur votre mail ou votre numéro de téléphone",
"ASK_FOR_CREDIT": "Demander du crédit", "ASK_FOR_CREDIT": "Demander du crédit",
"ASK_CREDIT": "Demandes de crédit", "ASK_CREDIT": "Demandes de crédit",
@ -34,6 +37,7 @@
"CREDIT_MANAGE": "Gestion de credit", "CREDIT_MANAGE": "Gestion de credit",
"GROUP_MANAGE": "Gestion du groupe", "GROUP_MANAGE": "Gestion du groupe",
"NOTIFICATIONS": "Notification", "NOTIFICATIONS": "Notification",
"NO_NOTIFICATION": "Vous n'avez aucune notification",
"CONFIGURATIONS": "Configuration", "CONFIGURATIONS": "Configuration",
"LOGOUT": "Déconnexion", "LOGOUT": "Déconnexion",
"HINT_HOME_SEARCH": " Chercher un lieu, quartier ou ville ", "HINT_HOME_SEARCH": " Chercher un lieu, quartier ou ville ",
@ -55,6 +59,7 @@
"CREDIT": "Crédit", "CREDIT": "Crédit",
"NEXT": "Suivant", "NEXT": "Suivant",
"SPONSOR_CODE": "Code parrain", "SPONSOR_CODE": "Code parrain",
"SOLDE_UNVAIBLE": "solde non disponible",
"TEXT_BIG_CREATE_AGENT_1": "Inscrivez-vous en comme Agent", "TEXT_BIG_CREATE_AGENT_1": "Inscrivez-vous en comme Agent",
"EMAIL": "Email", "EMAIL": "Email",
"COUNTRY": "Pays", "COUNTRY": "Pays",
@ -176,6 +181,8 @@
"SEARCH_20": "20 km", "SEARCH_20": "20 km",
"SEARCH_25": "25 km", "SEARCH_25": "25 km",
"SEARCH": "Rechercher", "SEARCH": "Rechercher",
"SEE_VIDEO": "Voir la vidéo",
"SEE_TUTO": "Voir le tutoriel",
"DELETE": "Supprimer", "DELETE": "Supprimer",
"FREE": "disponibles", "FREE": "disponibles",
"SAVED": "enregistrés", "SAVED": "enregistrés",
@ -195,12 +202,14 @@
"PHONE_TRANSACTION": "Numéro de transaction", "PHONE_TRANSACTION": "Numéro de transaction",
"DEMAND_TEXT_FIRST_PART": "a effectué une demande de ", "DEMAND_TEXT_FIRST_PART": "a effectué une demande de ",
"DEMANDE_SEND": " Demande Envoyée", "DEMANDE_SEND": " Demande Envoyée",
"DEMAND_RECEIVE": "Demandes reçues",
"TO_": " crédit auprès de ", "TO_": " crédit auprès de ",
"DEMAND_SEND_SUCCESFUL": "Votre demande a été envoyée avec succès !", "DEMAND_SEND_SUCCESFUL": "Votre demande a été envoyée avec succès !",
"SAVE_HISTORY": "Enregistrer l'historique", "SAVE_HISTORY": "Enregistrer l'historique",
"MAKE_REQUEST": "Faire une demande", "MAKE_REQUEST": "Faire une demande",
"DATE_WRONG": "La date de fin ne peut être antérieure à la date de début", "DATE_WRONG": "La date de fin ne peut être antérieure à la date de début",
"LOADING_DOTS": "Chargements...", "LOADING_DOTS": "Chargement...",
"LOADING_PROGRESS": "Chargement en cours",
"EMPTY_LIST_REQUEST": "Aucune demande", "EMPTY_LIST_REQUEST": "Aucune demande",
"MEMBER_LIST": "Liste des membres", "MEMBER_LIST": "Liste des membres",
"FREE_CODE_LIST": "Liste des codes disponibles", "FREE_CODE_LIST": "Liste des codes disponibles",

View File

@ -13,8 +13,10 @@ var serializeJSON = function(data) {
}; };
export const getCodeInformation = (code) => { export const getCodeInformation = (code) => {
var data={"tag":'member',"type":"agen_info_code","code":code, var data = {
"lang":I18n.currentLocale()}; "tag": 'member', "type": "agen_info_code", "code": code,
"lang": I18n.currentLocale()
};
return queryData(data, memberActionUrl) return queryData(data, memberActionUrl)
} }
@ -60,8 +62,10 @@ function timeout(ms, promise) {
}) })
} }
export const validateUser = (user) => { export const validateUser = (user) => {
var data={"tag":'member',"type":"valider_simple","phone":user.phone, var data = {
"lang":I18n.currentLocale()}; "tag": 'member', "type": "valider_simple", "phone": user.phone,
"lang": I18n.currentLocale()
};
return queryData(data, memberActionUrl) return queryData(data, memberActionUrl)
}; };
export const updatePosition = async (longitude, latitude) => { export const updatePosition = async (longitude, latitude) => {
@ -107,11 +111,16 @@ export const disconnect=()=>{
} }
export const login = (phone: String, password: String, type: Number) => { export const login = (phone: String, password: String, type: Number) => {
const configuration=new Configuration() console.log("CURRENT_LANG", I18n.currentLocale());
var data={"tag":type===0?"login_user":"login_agent","phone":phone,"password":password,"lang":configuration.getCurrentLangue()}; var data = {
tag: type === 0 ? "login_user" : "login_agent",
phone: phone,
password: password,
lang: I18n.currentLocale()
};
return queryAuth(data) return queryAuth(data);
} };
export const reinitpassword = ($phone, $type) => { export const reinitpassword = ($phone, $type) => {
var data = { "tag": "forgot_pass", "number": $phone, "typeaccount": $type, "lang": I18n.currentLocale() }; var data = { "tag": "forgot_pass", "number": $phone, "typeaccount": $type, "lang": I18n.currentLocale() };
@ -170,7 +179,10 @@ const readBrutUser=()=>{
} else { } else {
if (result.user === null) { resolve(null) } if (result.user === null) { resolve(null) }
else else
resolve(result)};})}); resolve(result)
};
})
});
} }
export const readUser = () => { export const readUser = () => {
@ -186,7 +198,9 @@ export const readUser=()=>{
resolve(result.user) resolve(result.user)
} }
}})}); }
})
});
} }
export const createGeolocatedAccount = (user) => { export const createGeolocatedAccount = (user) => {

View File

@ -2,13 +2,13 @@ export const isDebugMode = false
//base url test //base url test
//const baseUrl="https://ilink-app.com/mobilebackendbeta" //const baseUrl="https://ilink-app.com/mobilebackendbeta"
//base url production //base url production
//const baseUrl = "https://ilink-app.com/mobilebackend" const baseUrl = "https://ilink-app.com/mobilebackend"
//base url agent //base url agent
//const baseUrl="https://ilink-app.com/mobilebackendtest2" //const baseUrl="https://ilink-app.com/mobilebackendtest2"
//base url agent test //base url agent test
const baseUrl = "https://ilink-app.com/mobilebackendtest" //const baseUrl = "https://ilink-app.com/mobilebackendtest"
export const adhesionUrl = baseUrl + '/interacted/LoginAction.php'; export const adhesionUrl = baseUrl + '/interacted/LoginAction.php';
export const memberActionUrl = baseUrl + '/interacted/MembersAction.php'; export const memberActionUrl = baseUrl + '/interacted/MembersAction.php';