Skip to content

Feature/catalog #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .expo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
> Why do I have a folder named ".expo" in my project?

The ".expo" folder is created when an Expo project is started using "expo start" command.

> What do the files contain?

- "devices.json": contains information about devices that have recently opened this project. This is used to populate the "Development sessions" list in your development builds.
- "packager-info.json": contains port numbers and process PIDs that are used to serve the application to the mobile device/simulator.
- "settings.json": contains the server configuration that is used to serve the application manifest.

> Should I commit the ".expo" folder?

No, you should not share the ".expo" folder. It does not contain any information that is relevant for other developers working on the project, it is specific to your machine.

Upon project creation, the ".expo" folder is already added to your ".gitignore" file.
9 changes: 9 additions & 0 deletions .expo/packager-info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"expoServerPort": 19000,
"packagerPort": 19000,
"packagerPid": null,
"expoServerNgrokUrl": null,
"packagerNgrokUrl": null,
"ngrokPid": null,
"webpackServerPort": null
}
10 changes: 10 additions & 0 deletions .expo/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"hostType": "lan",
"lanType": "ip",
"dev": true,
"minify": false,
"urlRandomness": null,
"https": false,
"scheme": null,
"devClient": false
}
44 changes: 27 additions & 17 deletions App.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';

import * as React from 'react';
//Third Party Packages
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { Provider } from 'react-redux';
import {createStore, combineReducers, applyMiddleware} from "redux";
import thunk from "redux-thunk";
//redux State
import InitialState from "./src/redux/reducer";
//Screen Imports
import Dashboard from "./src/screens/dashboard/dashboard";
import ContactScreen from "./src/screens/contact/contactScreen";
import CatalogScreen from './src/screens/catalog/catalogList';
import CatalogDetails from './src/screens/catalog/catalogDetails';
const Stack = createNativeStackNavigator();
const reducer = createStore(combineReducers({data:InitialState}), applyMiddleware(thunk));
export default function App() {
return (
<View style={styles.container}>
<Text>Open up App.js to start working on your app!</Text>
<StatusBar style="auto" />
</View>
<Provider store={reducer}>
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="DashboardScreen" options={{ title: "Pokemon App" }} component={Dashboard} />
<Stack.Screen name="ContactScreen" options={{ title: "Contact Us" }} component={ContactScreen} />
<Stack.Screen name="CatalogScreen" options={{ title: "Catalogs" }} component={CatalogScreen} />
<Stack.Screen name="CatalogDetailsScreen" options={{ title: "Pokemon Details" }} component={CatalogDetails} />
</Stack.Navigator>
</NavigationContainer>
</Provider>
);
}

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});
}
7 changes: 7 additions & 0 deletions my-info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"favorite_colors": ["blue","green","red"],
"country": "United Arab Emirates",
"population": 3400000,
"visit_within_5years": true,
"favorite_foods": ["Biryani", "Mutton Curry With Rice", "Butter Chicken"]
}
Loading