Skip to content

Commit 1ba1c5e

Browse files
authored
Merge pull request #7 from mahaaoo/fix/eslint
Fix/eslint
2 parents 1b223ce + 375fe88 commit 1ba1c5e

38 files changed

+1996
-469
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**/*.test.ts
2+
**/*.test.tsx

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": ["@react-native-community", "prettier"],
2+
"extends": ["expo", "prettier"],
33
"rules": {
44
"prettier/prettier": [
55
"error",
File renamed without changes.

example/src/pages/TabBarExample.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ const TabBarExample: React.FC<TabBarExampleProps> = (props) => {
6060
color: 'grey',
6161
fontWeight: 'bold',
6262
}}
63-
activeTextColor='red'
64-
inactiveTextColor='green'
63+
activeTextColor="red"
64+
inactiveTextColor="green"
6565
tabBarItemStyle={{ backgroundColor: 'pink' }}
6666
/>
6767
<TabBar

example/src/pages/TabViewExample.tsx

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,18 @@ const tabs = ['tab1', 'tab2', 'this is tab3', 'tab5', '11', 'tab8', 'ta11'];
88

99
const TabViewExample: React.FC<TabViewExampleProps> = (props) => {
1010
const {} = props;
11-
11+
1212
return (
1313
<View style={styles.container}>
14-
<TabView tabs={tabs} tabBarflex='equal-width'>
15-
{
16-
tabs.map((tab, index) => {
17-
return (
18-
<View key={index} style={{ flex: 1, backgroundColor: 'pink' }}>
19-
<Text>{tab}</Text>
20-
<Text>{tab}</Text>
21-
22-
</View>
23-
)
24-
})
25-
}
14+
<TabView tabs={tabs} tabBarflex="equal-width">
15+
{tabs.map((tab, index) => {
16+
return (
17+
<View key={index} style={{ flex: 1, backgroundColor: 'pink' }}>
18+
<Text>{tab}</Text>
19+
<Text>{tab}</Text>
20+
</View>
21+
);
22+
})}
2623
</TabView>
2724
</View>
2825
);

example/src/pages/WaterfallListExample.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const { width } = Dimensions.get('window');
77
interface WaterFallListExampleProps {}
88

99
const WaterFallListExample: React.FC<WaterFallListExampleProps> = (props) => {
10-
const {} = props;
1110
const [data, setData] = useState([]);
1211
const [status, setStatus] = useState<RefreshState>(RefreshState.Idle);
1312
const total = useRef(0);

0 commit comments

Comments
 (0)