Skip to content

Commit f681141

Browse files
committed
eslint configuration and gif
1 parent d52c01a commit f681141

12 files changed

Lines changed: 364 additions & 58 deletions

File tree

3.16 MB
Loading

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import React from "react";
1+
import React from 'react';
22
import {AppRegistry, View, StyleSheet} from 'react-native';
33
import {name as appName} from './app.json';
4-
import Router from "./src/Router";
4+
import Router from './src/Router';
55

66
//for EStyleSheet
77
import UtilStyle from './src/utils/styles/UtilStyle';
@@ -17,5 +17,5 @@ AppRegistry.registerComponent(appName, () => App);
1717
const styles = StyleSheet.create({
1818
container: {
1919
flex: 1,
20-
}
20+
},
2121
});

ios/navigation5.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@
718718
);
719719
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
720720
PRODUCT_NAME = "$(TARGET_NAME)";
721-
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/navigation5.app/navigation5";
721+
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Template App.app/Template App";
722722
};
723723
name = Debug;
724724
};
@@ -738,7 +738,7 @@
738738
);
739739
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
740740
PRODUCT_NAME = "$(TARGET_NAME)";
741-
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/navigation5.app/navigation5";
741+
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Template App.app/Template App";
742742
};
743743
name = Release;
744744
};

ios/navigation5.xcodeproj/xcshareddata/xcschemes/navigation5.xcscheme

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<BuildableReference
3030
BuildableIdentifier = "primary"
3131
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
32-
BuildableName = "navigation5.app"
32+
BuildableName = "Template App.app"
3333
BlueprintName = "navigation5"
3434
ReferencedContainer = "container:navigation5.xcodeproj">
3535
</BuildableReference>
@@ -55,6 +55,15 @@
5555
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5656
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
5757
shouldUseLaunchSchemeArgsEnv = "YES">
58+
<MacroExpansion>
59+
<BuildableReference
60+
BuildableIdentifier = "primary"
61+
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
62+
BuildableName = "Template App.app"
63+
BlueprintName = "navigation5"
64+
ReferencedContainer = "container:navigation5.xcodeproj">
65+
</BuildableReference>
66+
</MacroExpansion>
5867
<Testables>
5968
<TestableReference
6069
skipped = "NO">
@@ -67,17 +76,6 @@
6776
</BuildableReference>
6877
</TestableReference>
6978
</Testables>
70-
<MacroExpansion>
71-
<BuildableReference
72-
BuildableIdentifier = "primary"
73-
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
74-
BuildableName = "navigation5.app"
75-
BlueprintName = "navigation5"
76-
ReferencedContainer = "container:navigation5.xcodeproj">
77-
</BuildableReference>
78-
</MacroExpansion>
79-
<AdditionalOptions>
80-
</AdditionalOptions>
8179
</TestAction>
8280
<LaunchAction
8381
buildConfiguration = "Debug"
@@ -94,13 +92,11 @@
9492
<BuildableReference
9593
BuildableIdentifier = "primary"
9694
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
97-
BuildableName = "navigation5.app"
95+
BuildableName = "Template App.app"
9896
BlueprintName = "navigation5"
9997
ReferencedContainer = "container:navigation5.xcodeproj">
10098
</BuildableReference>
10199
</BuildableProductRunnable>
102-
<AdditionalOptions>
103-
</AdditionalOptions>
104100
</LaunchAction>
105101
<ProfileAction
106102
buildConfiguration = "Release"
@@ -113,7 +109,7 @@
113109
<BuildableReference
114110
BuildableIdentifier = "primary"
115111
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
116-
BuildableName = "navigation5.app"
112+
BuildableName = "Template App.app"
117113
BlueprintName = "navigation5"
118114
ReferencedContainer = "container:navigation5.xcodeproj">
119115
</BuildableReference>

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"ios": "react-native run-ios",
88
"start": "react-native start",
99
"test": "jest",
10-
"lint": "eslint ."
10+
"lint": "eslint .",
11+
"extends": "@react-native-community"
1112
},
1213
"dependencies": {
1314
"@react-native-community/masked-view": "^0.1.6",

src/components/sidemenu/DrawerSearch.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Icon from 'react-native-vector-icons/FontAwesome5';
44
import EStyleSheet from 'react-native-extended-stylesheet';
55

66
export const DrawerSearch = ({}) => {
7-
87
return (
98
<TouchableOpacity style={styles.container}>
109
<Icon name="search" size={25} color={EStyleSheet.value('$gColor')} />

src/screens/Home.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import React, {useEffect, useState} from 'react';
22
import EStyleSheet from 'react-native-extended-stylesheet';
33
import {Text, View} from 'react-native';
4+
import LanguageStore from '../utils/store/LanguageStore';
45

56
const Home = ({}) => {
6-
const [message, setMessage] = useState("Default Homepage");
7+
const [message, setMessage] = useState(
8+
LanguageStore.resource.side_menu.home.title,
9+
);
710

811
useEffect(() => {
912
//

src/screens/bottomtab/about/About.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
import React, {useEffect, useState} from 'react';
1+
import React from 'react';
22
import EStyleSheet from 'react-native-extended-stylesheet';
33
import {Text, View} from 'react-native';
4-
import RenderLoadingView from '../../../components/RenderLoadingView';
5-
import LanguageStore from "../../../utils/store/LanguageStore";
4+
import LanguageStore from '../../../utils/store/LanguageStore';
65

76
const About = ({}) => {
8-
97
const render = () => {
108
return (
119
<View style={styles.container}>

src/screens/bottomtab/takesend/TakeSendList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import RenderLoadingView from '../../../components/RenderLoadingView';
44

55
export const TakeSendList = ({}) => {
66
const [isVisible, setIsVisible] = useState(true);
7-
const [message, setMessage] = useState("List");
7+
const [message, setMessage] = useState('List');
88

99
useEffect(() => {
1010
//

src/screens/corporate/Corporate.js

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,38 @@
11
import React, {useEffect, useState} from 'react';
22
import EStyleSheet from 'react-native-extended-stylesheet';
33
import {View} from 'react-native';
4-
import {Button} from "react-native-elements";
4+
import {Button} from 'react-native-elements';
55

6-
import LanguageStore from "../../utils/store/LanguageStore";
7-
import RenderLoadingView from "../../components/RenderLoadingView";
6+
import LanguageStore from '../../utils/store/LanguageStore';
7+
import RenderLoadingView from '../../components/RenderLoadingView';
88

99
const Corporate = ({}) => {
1010
const [isVisible, setIsVisible] = useState(true);
11-
const [buttonTitle, setButtonTitle] = useState(LanguageStore.resource.side_menu.home.button_call);
11+
const [buttonTitle, setButtonTitle] = useState(
12+
LanguageStore.resource.side_menu.home.button_call,
13+
);
1214

1315
//when buttonFile variable is changed, the useEffect function executes again
1416
useEffect(() => {
15-
alert("useEffect run")
17+
alert('useEffect run');
1618
}, [buttonTitle]);
1719

1820
const getLoading = async () => {
1921
setIsVisible(false);
2022
setTimeout(() => {
2123
setIsVisible(true);
22-
setButtonTitle("Changed")
24+
setButtonTitle('Changed');
2325
}, 1000);
2426
};
2527

2628
const renderData = () => {
2729
return (
2830
<View style={styles.container}>
29-
<Button style={styles.home} title={buttonTitle} onPress={() => getLoading()} />
31+
<Button
32+
style={styles.home}
33+
title={buttonTitle}
34+
onPress={() => getLoading()}
35+
/>
3036
</View>
3137
);
3238
};

0 commit comments

Comments
 (0)