Skip to content

Commit

Permalink
Merge pull request #7 from mahaaoo/fix/eslint
Browse files Browse the repository at this point in the history
Fix/eslint
  • Loading branch information
mahaaoo authored Nov 5, 2024
2 parents 1b223ce + 375fe88 commit 1ba1c5e
Show file tree
Hide file tree
Showing 38 changed files with 1,996 additions and 469 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/*.test.ts
**/*.test.tsx
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": ["@react-native-community", "prettier"],
"extends": ["expo", "prettier"],
"rules": {
"prettier/prettier": [
"error",
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions example/src/pages/TabBarExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ const TabBarExample: React.FC<TabBarExampleProps> = (props) => {
color: 'grey',
fontWeight: 'bold',
}}
activeTextColor='red'
inactiveTextColor='green'
activeTextColor="red"
inactiveTextColor="green"
tabBarItemStyle={{ backgroundColor: 'pink' }}
/>
<TabBar
Expand Down
23 changes: 10 additions & 13 deletions example/src/pages/TabViewExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,18 @@ const tabs = ['tab1', 'tab2', 'this is tab3', 'tab5', '11', 'tab8', 'ta11'];

const TabViewExample: React.FC<TabViewExampleProps> = (props) => {
const {} = props;

return (
<View style={styles.container}>
<TabView tabs={tabs} tabBarflex='equal-width'>
{
tabs.map((tab, index) => {
return (
<View key={index} style={{ flex: 1, backgroundColor: 'pink' }}>
<Text>{tab}</Text>
<Text>{tab}</Text>

</View>
)
})
}
<TabView tabs={tabs} tabBarflex="equal-width">
{tabs.map((tab, index) => {
return (
<View key={index} style={{ flex: 1, backgroundColor: 'pink' }}>
<Text>{tab}</Text>
<Text>{tab}</Text>
</View>
);
})}
</TabView>
</View>
);
Expand Down
1 change: 0 additions & 1 deletion example/src/pages/WaterfallListExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const { width } = Dimensions.get('window');
interface WaterFallListExampleProps {}

const WaterFallListExample: React.FC<WaterFallListExampleProps> = (props) => {
const {} = props;
const [data, setData] = useState([]);
const [status, setStatus] = useState<RefreshState>(RefreshState.Idle);
const total = useRef(0);
Expand Down
Loading

0 comments on commit 1ba1c5e

Please sign in to comment.