Skip to content

Commit

Permalink
clean some assets
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyAvraham committed Dec 3, 2020
1 parent af6666a commit 5238199
Show file tree
Hide file tree
Showing 27 changed files with 25 additions and 129 deletions.
2 changes: 1 addition & 1 deletion App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import * as React from "react";
import { I18nManager } from 'react-native';

import AppNavigationStack from "./Components/navigation/AppNavigationStack";
Expand Down
2 changes: 1 addition & 1 deletion Components/Background.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import * as React from "react";
import { StyleSheet, View } from "react-native";
import { Video } from "expo-av";

Expand Down
4 changes: 1 addition & 3 deletions Components/CustomMap.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import * as React from "react";
import { StyleSheet, Dimensions, Image } from "react-native";
import MapView, { Marker, PROVIDER_GOOGLE } from "react-native-maps";

Expand All @@ -24,8 +24,6 @@ function CustomMap() {
>
<Marker
coordinate={region}
title="KB-PURE"
description="KB-PURE"
>
<Image
source={BlueFlagImg}
Expand Down
2 changes: 1 addition & 1 deletion Components/KBText.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import * as React from "react";
import { Text, StyleSheet } from "react-native";
import { RFPercentage } from "react-native-responsive-fontsize";

Expand Down
2 changes: 1 addition & 1 deletion Components/KBTitle.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import * as React from "react";
import { StyleSheet } from "react-native";
import { RFPercentage } from "react-native-responsive-fontsize";
import KBText from "./KBText";
Expand Down
8 changes: 0 additions & 8 deletions Components/LoadAssets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@ function LoadAssets(props) {
try {
await cacheAssetsAsync({
images: [
require("../assets/images/logo-large.png"),
require("../assets/images/user.png"),
require("../assets/back-blur-3.mp4"),
require("../assets/kb-icon.png"),
require("../assets/hamburger.png"),
require("../assets/navPage/flag-blue.png"),
require("../assets/navPage/flag-pink.png"),
require("../assets/navPage/waze.png"),
],
fonts: [
FontAwesome.font,
Expand Down
2 changes: 1 addition & 1 deletion Components/Logo.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Image, StyleSheet, TouchableOpacity, Dimensions } from "react-native";
import React from "react";
import * as React from "react";

const Logo = props => (
<TouchableOpacity style={props.style} onPress={props.onPress}>
Expand Down
2 changes: 1 addition & 1 deletion Components/MaterialButtonDark.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import * as React from "react";
import { StyleSheet} from "react-native";
import ButtonSpinner from 'react-native-button-spinner';
import KBTitle from "./KBTitle";
Expand Down
2 changes: 1 addition & 1 deletion Components/WazeLink.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import * as React from "react";
import {
View,
StyleSheet,
Expand Down
2 changes: 1 addition & 1 deletion Components/navigation/AppNavigationStack.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import * as React from "react";
import { Dimensions } from "react-native";
import { createStackNavigator } from "@react-navigation/stack";

Expand Down
2 changes: 1 addition & 1 deletion Components/navigation/CustomDrawerContent.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import * as React from "react";
import { DrawerContentScrollView, DrawerItem } from "@react-navigation/drawer";
import { translated } from "../../Utils/Localization";

Expand Down
2 changes: 1 addition & 1 deletion Components/navigation/DrawerIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Image, StyleSheet, TouchableOpacity } from "react-native";
import React from "react";
import * as React from "react";

const DrawerIcon = props => (
<TouchableOpacity
Expand Down
2 changes: 1 addition & 1 deletion Components/navigation/MainNavDrawer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import * as React from "react";
import { useWindowDimensions, Image } from "react-native";
import { RFPercentage } from "react-native-responsive-fontsize";

Expand Down
2 changes: 1 addition & 1 deletion Components/navigation/ProfileButton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import PropTypes from "prop-types";
import React from "react";
import * as React from "react";
import { Image, StyleSheet, TouchableOpacity } from "react-native";
import { RFPercentage } from "react-native-responsive-fontsize";

Expand Down
30 changes: 0 additions & 30 deletions Config/TextContent.ts

This file was deleted.

12 changes: 5 additions & 7 deletions Pages/Company/AboutCompany.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import * as React from "react";
import { Linking } from "expo";
import { View, StyleSheet, TouchableOpacity, ScrollView } from "react-native";
import { RFPercentage } from "react-native-responsive-fontsize";
Expand Down Expand Up @@ -26,17 +26,15 @@ function About() {
<Ionicons
name="logo-facebook"
size={RFPercentage(7)}
onPress={() =>
Linking.openURL("https://urlgeni.us/facebook/kb-pure")
}
// onPress={() =>
// }
/>
<KBText style={styles.delimiter}>|</KBText>
<Ionicons
name="logo-instagram"
size={RFPercentage(7)}
onPress={() =>
Linking.openURL("https://urlgeni.us/instagram/kb-pure-insta")
}
// onPress={() =>
// }
/>
</View>
<TouchableOpacity
Expand Down
2 changes: 1 addition & 1 deletion Pages/Company/CompanyProtocol.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import * as React from "react";
import { View, StyleSheet, ScrollView } from "react-native";
import { RFPercentage } from "react-native-responsive-fontsize";

Expand Down
2 changes: 1 addition & 1 deletion Pages/Company/NavigationInstructions.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import * as React from "react";
import { View, StyleSheet } from "react-native";
import KBTitle from "../../Components/KBTitle";
import { translated } from "../../Utils/Localization";
Expand Down
2 changes: 1 addition & 1 deletion Pages/Main/MainAction.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import * as React from "react";
import {
StyleSheet,
View,
Expand Down
2 changes: 1 addition & 1 deletion Pages/Personal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import * as React from "react";
import { StyleSheet, View, ScrollView } from "react-native";
import { useStateValue } from "../Utils/State";
import Background from "../Components/Background";
Expand Down
63 changes: 1 addition & 62 deletions Utils/Localization.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// import * as Localization from "expo-localization";
import i18n from "i18n-js";
import { AboutContent, ProtocolContent } from "../Config/TextContent";

i18n.translations = {
en: {
Expand Down Expand Up @@ -56,72 +55,12 @@ i18n.translations = {
SemiTitle: "SemiTitle",
Content: "content"
}
},
he: {
EnterPhone: "כניסה בזיהוי טלפוני>> ",
EnterFB: "כניסה עם פייסבוק",
Welcome: "ברוכה השבה \n לעולם המתקדם של KB-PURE",
Logout: "התנתק",
BeforeAuthTitle: "קוסמטיקאית יקרה,",
BeforeAuth:
"ברוכה הבאה \n לעולם המתקדם של KB-PURE. \n רגע לפני שמתחילים, מספר צעדים לשמירה על פרטיותך.",
DrawerLinks: {
MainPage: "לעמוד הראשי",
Top10: "My Top 10",
Company: {
Protocol: "נהלי החברה להחזרים",
About: "על החברה",
Navigation: "ניווט למשרדי החברה",
Privacy: "מדיניות פרטיות"
}
},
PersonalPage: {
Title: "איזור אישי",
Name: "שם:",
Dob: "תאריך לידה:",
Guide: "שם מדריך:",
Phone: "טלפון:",
Address: "כתובת:",
ID: "ח.פ:",
LastPurchase: "תאריך רכישה אחרונה:",
CreatedAt: "תאריך הצטרפות למשפחה:",
AccountsBalance: "מאזן מול הנהלת חשבון:",
Top10: "My Top 10"
},
MainPage: {
Chat: "ייעוץ מקצועי",
Shop: "מרכז הזמנות",
Courses: "סדנאות וימי העשרה",
HomeCare: "סימולציות להתאמת טיפול ביתי",
LiveTV: "LIVE TV",
Simulation: "פרוטוקול טיפולי מכון",
Articles: "מאמרים",
Marketing: "חומר שיווקי"
},
NavPage: {
Title: "ניווט למשרדי החברה",
Address: "דוד סחרוב 5, ראשון לציון",
Nav: "ניווט"
},
AboutPage: {
Title: "אודות",
SemiTitle: "לקוח/ה יקר/ה",
Content: AboutContent,
FollowUs: "עקבו אחרינו ברשתות החברתיות",
ContactUs: "ליצירת קשר עם משרדי החברה >>"
},
ProtocolPage: {
Title: "מדיניות החזרות",
SemiTitle:
"מדיניות החזרת מוצרים בכפוף לתקנות המעוגנות בחוק להגנת הצרכן התשעא-2010",
Content: ProtocolContent
}
}
};

// Set the locale once at the beginning of your app.
// i18n.locale = Localization.locale;
i18n.locale = "he";
// i18n.locale = "he"; // this is how u change lenguage
i18n.fallbacks = true;

export function translated(t) {
Expand Down
5 changes: 2 additions & 3 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
],
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/kb-icon.png",
"splash": {
"image": "./assets/splash/splash-gradient.png",
"image": "./assets/splash/splash.png",
"resizeMode": "cover"
},
"updates": {
Expand All @@ -28,7 +27,7 @@
]
}
},
"scheme": "kbp",
"scheme": "app.scheme.for.example",
"description": ""
}
}
Binary file removed assets/kb-icon.png
Binary file not shown.
Binary file removed assets/splash/splash-gradient.png
Binary file not shown.
Binary file removed assets/splash/[email protected]
Binary file not shown.
Binary file removed assets/splash/splash-speed.gif
Binary file not shown.
Binary file removed assets/splash/splash2.gif
Binary file not shown.

0 comments on commit 5238199

Please sign in to comment.