Skip to content

Commit

Permalink
fix: lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Meyanis95 committed Apr 19, 2024
1 parent 9bccc88 commit 5d6ae4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions example/src/Components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable react-native/no-inline-styles */
import React, { type FunctionComponent } from 'react';
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
import { icons } from './illustrations';
Expand Down
9 changes: 5 additions & 4 deletions example/src/Screens/HomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import { Footer } from '../Components/Footer';
import { icons } from '../Components/illustrations';
import { SvgXml } from 'react-native-svg';

const img = require('../../assets/home.png');

export type HomeScreenProps = {
navigation: any;
};
Expand All @@ -35,7 +33,10 @@ export const HomeScreen: FunctionComponent<HomeScreenProps> = ({
<View style={styles.scrollView}>
<Text style={styles.heading}>Hey Anon,</Text>
<View style={styles.greenSection}>
<Image source={img} style={styles.topImage} />
<Image
source={require('../../assets/home.png')}
style={styles.topImage}
/>
<View style={{ padding: 15, marginTop: 10 }}>
<View style={styles.tag}>
<Text style={styles.callout}>
Expand Down Expand Up @@ -79,8 +80,8 @@ export const HomeScreen: FunctionComponent<HomeScreenProps> = ({
<View
style={{
position: 'absolute',
right: 10,
top: '50%',
right: 10,
}}
>
<SvgXml xml={icons.arrowRightLine} width="40" height="40" />
Expand Down

0 comments on commit 5d6ae4c

Please sign in to comment.