Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
restructured screens
Browse files Browse the repository at this point in the history
  • Loading branch information
sujaldev committed Oct 21, 2022
1 parent 959e131 commit d50003b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import HomeScreen from './components/HomeScreen';
import SearchScreen from './components/SearchScreen';
import HomeScreen from './screens/HomeScreen';
import SearchScreen from './screens/SearchScreen';
import RedSkull from 'redskulljs';

const API = new RedSkull();
Expand Down
6 changes: 3 additions & 3 deletions src/components/HomeScreen.js → src/screens/HomeScreen.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, {useState, useEffect} from 'react';
import {StyleSheet, View, Text} from 'react-native';
import SearchBar from './SearchBar';
import TrendingBar from './TrendingBar';
import SearchBar from '../components/SearchBar';
import TrendingBar from '../components/TrendingBar';
import LinearGradient from 'react-native-linear-gradient';

const styles = StyleSheet.create({
Expand Down Expand Up @@ -77,7 +77,7 @@ const HomeScreen = props => {
</Text>
<Text style={styles.metadata}>
{activeElement.title
? `\t${String(activeElement.type).toUpperCase()} \t|\t ${
? `${String(activeElement.type).toUpperCase()} \t|\t ${
activeElement.quality
}\t`
: ''}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, {useState, useEffect} from 'react';
import {StyleSheet, View, Text} from 'react-native';
import SearchResults from './SearchResults';
import SearchResults from '../components/SearchResults';
import LinearGradient from 'react-native-linear-gradient';

const styles = StyleSheet.create({
Expand Down

0 comments on commit d50003b

Please sign in to comment.