Skip to content

Commit

Permalink
Improve performence
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapawar1 committed Apr 21, 2024
1 parent a81751d commit 825d248
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/app/(tabs)/author/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import * as cheerio from 'cheerio';
import { useLocalSearchParams, router } from 'expo-router';
import { useEffect, useState } from 'react';
import { ActivityIndicator, ScrollView, View, Text, Image } from 'react-native';
import { ActivityIndicator, ScrollView, View, Text } from 'react-native';
import { Image } from 'expo-image';
import { SafeAreaView } from 'react-native-safe-area-context';

import styles from './styles';
Expand Down
2 changes: 1 addition & 1 deletion src/app/(tabs)/story/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import React, { useEffect, useState } from 'react';
import {
ActivityIndicator,
FlatList,
Image,
ScrollView,
Share,
Text,
TouchableOpacity,
View,
useWindowDimensions,
} from 'react-native';
import { Image } from 'expo-image';
import { Button } from 'react-native-paper';
import { RenderHTML } from 'react-native-render-html';
import { SafeAreaView } from 'react-native-safe-area-context';
Expand Down
3 changes: 2 additions & 1 deletion src/components/AuthorCard/AuthorCard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Image, Text, View } from 'react-native';
import { Image } from 'expo-image';
import { Text, View } from 'react-native';
import styles from './styles';

type AuthorCardProps = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/ContentCard/ContentCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function ContentCard({
}
setReactions([]);
})();
});
}, []);

return (
<Pressable onPress={pressFunction}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {
GestureResponderEvent,
Text,
Image,
View,
TouchableOpacity,
} from 'react-native';
import { Image } from 'expo-image';

import styles from './styles';
import globalStyles from '../../styles/globalStyles';
Expand Down
2 changes: 1 addition & 1 deletion src/components/PreviewCard/PreviewCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function PreviewCard({
}
setReactions([]);
})();
});
}, []);

return (
<Pressable onPress={pressFunction}>
Expand Down
3 changes: 2 additions & 1 deletion src/components/SplashScreen/SplashScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { View, Image } from 'react-native';
import { View } from 'react-native';
import { Image } from 'expo-image';

import styles from './styles';

Expand Down

0 comments on commit 825d248

Please sign in to comment.