├── .env.example
├── .github
├── FUNDING.yml
├── ISSUE_TEMPLATE
│ ├── bug_report.md
│ └── feature_request.md
├── dependabot.yml
└── images
│ ├── img1.jpeg
│ ├── img2.jpeg
│ ├── img3.jpeg
│ ├── img4.jpeg
│ ├── img5.jpeg
│ ├── img6.jpeg
│ ├── img_main.jpeg
│ └── step_rapidapi.png
├── .gitignore
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── app.json
├── app
├── _layout.js
├── index.js
├── job-details
│ └── [id].js
└── search
│ └── [id].js
├── assets
├── adaptive-icon.png
├── favicon.png
├── fonts
│ ├── DMSans-Bold.ttf
│ ├── DMSans-Medium.ttf
│ └── DMSans-Regular.ttf
├── icon.png
├── icons
│ ├── amazon.png
│ ├── apple.png
│ ├── chevron-left.png
│ ├── chevron-right.png
│ ├── figma.png
│ ├── filter.png
│ ├── github.png
│ ├── google.png
│ ├── heart-ol.png
│ ├── heart.png
│ ├── left.png
│ ├── linkedin.png
│ ├── location.png
│ ├── menu.png
│ ├── microsoft.png
│ ├── search.png
│ ├── share.png
│ ├── slack.png
│ ├── spotify.png
│ ├── twitch.png
│ ├── twitter.png
│ └── wattpad.png
├── images
│ └── job.jpg
└── splash.png
├── babel.config.js
├── components
├── common
│ ├── cards
│ │ ├── nearby
│ │ │ ├── NearbyJobCard.jsx
│ │ │ └── nearbyjobcard.style.js
│ │ └── popular
│ │ │ ├── PopularJobCard.jsx
│ │ │ └── popularjobcard.style.js
│ └── header
│ │ ├── ScreenHeaderBtn.jsx
│ │ └── screenheader.style.js
├── home
│ ├── nearby
│ │ ├── Nearbyjobs.jsx
│ │ └── nearbyjobs.style.js
│ ├── popular
│ │ ├── Popularjobs.jsx
│ │ └── popularjobs.style.js
│ └── welcome
│ │ ├── Welcome.jsx
│ │ └── welcome.style.js
├── index.js
└── jobdetails
│ ├── about
│ ├── About.jsx
│ └── about.style.js
│ ├── company
│ ├── Company.jsx
│ └── company.style.js
│ ├── footer
│ ├── Footer.jsx
│ └── footer.style.js
│ ├── specifics
│ ├── Specifics.jsx
│ └── specifics.style.js
│ └── tabs
│ ├── Tabs.jsx
│ └── tabs.style.js
├── constants
├── icons.js
├── index.js
└── theme.js
├── eas.json
├── hook
└── useFetch.js
├── index.js
├── package.json
├── styles
└── search.js
├── utils
└── index.js
└── yarn.lock
/.env.example:
--------------------------------------------------------------------------------
1 | RAPID_API_KEY=XXXXXXXXXXXXXXXXXXX
2 |
3 |
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [sanidhyy]# Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4 | patreon: sanidhy
5 | custom: https://www.buymeacoffee.com/sanidhy
6 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Describe the bug**
11 | A clear and concise description of what the bug is.
12 |
13 | **To Reproduce**
14 | Steps to reproduce the behavior:
15 | 1. Go to '...'
16 | 2. Click on '....'
17 | 3. Scroll down to '....'
18 | 4. See error
19 |
20 | **Expected behavior**
21 | A clear and concise description of what you expected to happen.
22 |
23 | **Screenshots**
24 | If applicable, add screenshots to help explain your problem.
25 |
26 | **Desktop (please complete the following information):**
27 | - OS: [e.g. iOS]
28 | - Browser [e.g. chrome, safari]
29 | - Version [e.g. 22]
30 |
31 | **Smartphone (please complete the following information):**
32 | - Device: [e.g. iPhone6]
33 | - OS: [e.g. iOS8.1]
34 | - Browser [e.g. stock browser, safari]
35 | - Version [e.g. 22]
36 |
37 | **Additional context**
38 | Add any other context about the problem here.
39 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Is your feature request related to a problem? Please describe.**
11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12 |
13 | **Describe the solution you'd like**
14 | A clear and concise description of what you want to happen.
15 |
16 | **Describe alternatives you've considered**
17 | A clear and concise description of any alternative solutions or features you've considered.
18 |
19 | **Additional context**
20 | Add any other context or screenshots about the feature request here.
21 |
--------------------------------------------------------------------------------
/.github/dependabot.yml:
--------------------------------------------------------------------------------
1 | # To get started with Dependabot version updates, you'll need to specify which
2 | # package ecosystems to update and where the package manifests are located.
3 | # Please see the documentation for all configuration options:
4 | # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5 |
6 | version: 2
7 | updates:
8 | - package-ecosystem: "npm" # See documentation for possible values
9 | directory: "/" # Location of package manifests
10 | schedule:
11 | interval: "weekly"
12 |
--------------------------------------------------------------------------------
/.github/images/img1.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/.github/images/img1.jpeg
--------------------------------------------------------------------------------
/.github/images/img2.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/.github/images/img2.jpeg
--------------------------------------------------------------------------------
/.github/images/img3.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/.github/images/img3.jpeg
--------------------------------------------------------------------------------
/.github/images/img4.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/.github/images/img4.jpeg
--------------------------------------------------------------------------------
/.github/images/img5.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/.github/images/img5.jpeg
--------------------------------------------------------------------------------
/.github/images/img6.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/.github/images/img6.jpeg
--------------------------------------------------------------------------------
/.github/images/img_main.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/.github/images/img_main.jpeg
--------------------------------------------------------------------------------
/.github/images/step_rapidapi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/.github/images/step_rapidapi.png
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .expo/
3 | dist/
4 | npm-debug.*
5 | *.jks
6 | *.p8
7 | *.p12
8 | *.key
9 | *.mobileprovision
10 | *.orig.*
11 | web-build/
12 |
13 | # Environment Variables
14 | .env
15 |
16 | # macOS
17 | .DS_Store
18 |
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Contributor Covenant Code of Conduct
2 |
3 | ## Our Pledge
4 |
5 | We as members, contributors, and leaders pledge to make participation in our
6 | community a harassment-free experience for everyone, regardless of age, body
7 | size, visible or invisible disability, ethnicity, sex characteristics, gender
8 | identity and expression, level of experience, education, socio-economic status,
9 | nationality, personal appearance, race, religion, or sexual identity
10 | and orientation.
11 |
12 | We pledge to act and interact in ways that contribute to an open, welcoming,
13 | diverse, inclusive, and healthy community.
14 |
15 | ## Our Standards
16 |
17 | Examples of behavior that contributes to a positive environment for our
18 | community include:
19 |
20 | * Demonstrating empathy and kindness toward other people
21 | * Being respectful of differing opinions, viewpoints, and experiences
22 | * Giving and gracefully accepting constructive feedback
23 | * Accepting responsibility and apologizing to those affected by our mistakes,
24 | and learning from the experience
25 | * Focusing on what is best not just for us as individuals, but for the
26 | overall community
27 |
28 | Examples of unacceptable behavior include:
29 |
30 | * The use of sexualized language or imagery, and sexual attention or
31 | advances of any kind
32 | * Trolling, insulting or derogatory comments, and personal or political attacks
33 | * Public or private harassment
34 | * Publishing others' private information, such as a physical or email
35 | address, without their explicit permission
36 | * Other conduct which could reasonably be considered inappropriate in a
37 | professional setting
38 |
39 | ## Enforcement Responsibilities
40 |
41 | Community leaders are responsible for clarifying and enforcing our standards of
42 | acceptable behavior and will take appropriate and fair corrective action in
43 | response to any behavior that they deem inappropriate, threatening, offensive,
44 | or harmful.
45 |
46 | Community leaders have the right and responsibility to remove, edit, or reject
47 | comments, commits, code, wiki edits, issues, and other contributions that are
48 | not aligned to this Code of Conduct, and will communicate reasons for moderation
49 | decisions when appropriate.
50 |
51 | ## Scope
52 |
53 | This Code of Conduct applies within all community spaces, and also applies when
54 | an individual is officially representing the community in public spaces.
55 | Examples of representing our community include using an official e-mail address,
56 | posting via an official social media account, or acting as an appointed
57 | representative at an online or offline event.
58 |
59 | ## Enforcement
60 |
61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be
62 | reported to the community leaders responsible for enforcement at
63 | issues.
64 | All complaints will be reviewed and investigated promptly and fairly.
65 |
66 | All community leaders are obligated to respect the privacy and security of the
67 | reporter of any incident.
68 |
69 | ## Enforcement Guidelines
70 |
71 | Community leaders will follow these Community Impact Guidelines in determining
72 | the consequences for any action they deem in violation of this Code of Conduct:
73 |
74 | ### 1. Correction
75 |
76 | **Community Impact**: Use of inappropriate language or other behavior deemed
77 | unprofessional or unwelcome in the community.
78 |
79 | **Consequence**: A private, written warning from community leaders, providing
80 | clarity around the nature of the violation and an explanation of why the
81 | behavior was inappropriate. A public apology may be requested.
82 |
83 | ### 2. Warning
84 |
85 | **Community Impact**: A violation through a single incident or series
86 | of actions.
87 |
88 | **Consequence**: A warning with consequences for continued behavior. No
89 | interaction with the people involved, including unsolicited interaction with
90 | those enforcing the Code of Conduct, for a specified period of time. This
91 | includes avoiding interactions in community spaces as well as external channels
92 | like social media. Violating these terms may lead to a temporary or
93 | permanent ban.
94 |
95 | ### 3. Temporary Ban
96 |
97 | **Community Impact**: A serious violation of community standards, including
98 | sustained inappropriate behavior.
99 |
100 | **Consequence**: A temporary ban from any sort of interaction or public
101 | communication with the community for a specified period of time. No public or
102 | private interaction with the people involved, including unsolicited interaction
103 | with those enforcing the Code of Conduct, is allowed during this period.
104 | Violating these terms may lead to a permanent ban.
105 |
106 | ### 4. Permanent Ban
107 |
108 | **Community Impact**: Demonstrating a pattern of violation of community
109 | standards, including sustained inappropriate behavior, harassment of an
110 | individual, or aggression toward or disparagement of classes of individuals.
111 |
112 | **Consequence**: A permanent ban from any sort of public interaction within
113 | the community.
114 |
115 | ## Attribution
116 |
117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118 | version 2.0, available at
119 | https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120 |
121 | Community Impact Guidelines were inspired by [Mozilla's code of conduct
122 | enforcement ladder](https://github.com/mozilla/diversity).
123 |
124 | [homepage]: https://www.contributor-covenant.org
125 |
126 | For answers to common questions about this code of conduct, see the FAQ at
127 | https://www.contributor-covenant.org/faq. Translations are available at
128 | https://www.contributor-covenant.org/translations.
129 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | ## Contributing
2 |
3 | [fork]: https://github.com/Technical-Shubham-tech/jobs-react-native/fork
4 | [pr]: https://github.com/Technical-Shubham-tech/jobs-react-native/compare
5 | [style]: https://standardjs.com/
6 | [code-of-conduct]: CODE_OF_CONDUCT.md
7 |
8 | Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
9 |
10 | Please note that this project is released with a [Contributor Code of Conduct][code-of-conduct]. By participating in this project you agree to abide by its terms.
11 |
12 | ## Issues and PRs
13 |
14 | If you have suggestions for how this project could be improved, or want to report a bug, open an issue! We'd love all and any contributions. If you have questions, too, we'd love to hear them.
15 |
16 | We'd also love PRs. If you're thinking of a large PR, we advise opening up an issue first to talk about it, though! Look at the links below if you're not sure how to open a PR.
17 |
18 | ## Submitting a pull request
19 |
20 | 1. [Fork][fork] and clone the repository.
21 | 1. Configure and install the dependencies: `npm install`.
22 | 1. Make sure the tests pass on your machine: `npm test`, note: these tests also apply the linter, so there's no need to lint separately.
23 | 1. Create a new branch: `git checkout -b my-branch-name`.
24 | 1. Make your change, add tests, and make sure the tests still pass.
25 | 1. Push to your fork and [submit a pull request][pr].
26 | 1. Pat your self on the back and wait for your pull request to be reviewed and merged.
27 |
28 | Here are a few things you can do that will increase the likelihood of your pull request being accepted:
29 |
30 | - Follow the [style guide][style] which is using standard. Any linting errors should be shown when running `npm test`.
31 | - Write and update tests.
32 | - Keep your changes as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
33 | - Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
34 |
35 | Work in Progress pull requests are also welcome to get feedback early on, or if there is something blocked you.
36 |
37 | ## Resources
38 |
39 | - [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/)
40 | - [Using Pull Requests](https://help.github.com/articles/about-pull-requests/)
41 | - [GitHub Help](https://help.github.com)
42 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 Sanidhya Kr. Verma
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Job Finder - Find your perfect job
2 |
3 |
4 |
5 |
6 |
7 | [](https://github.com/Technical-Shubham-tech "Ask Me Anything!")
8 | [](https://github.com/Technical-Shubham-tech/jobs-react-native/blob/main/LICENSE.md "GitHub license")
9 | [](https://github.com/Technical-Shubham-tech/jobs-react-native/commits/main "Maintenance")
10 | [](https://github.com/Technical-Shubham-tech/jobs-react-native/branches "GitHub branches")
11 | [](https://github.com/Technical-Shubham-tech/jobs-react-native/commits "Github commits")
12 | [](https://github.com/Technical-Shubham-tech/jobs-react-native/issues "GitHub issues")
13 | [](https://github.com/Technical-Shubham-tech/jobs-react-native/pulls "GitHub pull requests")
14 |
15 | ## :pushpin: How to use this App?
16 |
17 | 1. Make sure [Git](https://git-scm.com "Git") and [NodeJS](https://nodejs.org "NodeJS") are installed.
18 | 2. Clone this repository to your local computer.
19 | 3. Type and Run `npm install` or `yarn install` to install required packages.
20 | 4. Install **Expo Cli** using `npm i -g expo-cli` or `yarn global add expo-cli` to deploy your app on Expo.
21 | 5. Create `.env` file in root directory.
22 | 6. Contents of `.env`:
23 |
24 | ```
25 | RAPID_API_KEY=XXXXXXXXXXXXXXXXXXX
26 | ```
27 |
28 | 7. Now, to setup API, go to [Rapid API Website](https://rapidapi.com/ "Rapid API Website") and create an account.
29 | 8. Enable this API to fetch job data: [API: JSearch by OpenWeb Ninja](https://rapidapi.com/letscrape-6bRBa3QguO5/api/jsearch "API: JSearch by OpenWeb Ninja").
30 |
31 | 
32 |
33 | 9. Once project has been set up, you can start this app using `npm start` or `yarn start`.
34 | 10. Now app is fully configured and you can start using this app :+1:.
35 |
36 | :books: **More Info** related [How to start Expo App](https://www.reactnative.dev/docs/environment-setup "How to start Expo App")
37 |
38 | ## :camera: Screenshots:
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 | ## :gear: Built with
56 |
57 | [
](https://www.javascript.com/ "JavaScript")
58 |
59 | [
](https://reactjs.org/ "React JS")
60 |
61 | [
](https://www.reactnative.dev/ "React Native")
62 |
63 | [
](https://github.com/Technical-Shubham-tech "Built with Love")
64 |
65 | ## :raised_hands: Contribute
66 |
67 | You might encounter some bugs while using this app. You are more than welcome to contribute. Just submit changes via pull request and I will review them before merging. Make sure you follow community guidelines.
68 |
69 | ## Buy Me a Coffee 🍺
70 |
71 | [
](https://www.buymeacoffee.com/sanidhy "Buy me a Coffee")
72 |
73 | ## :rocket: Follow Me
74 |
75 | [](https://github.com/Technical-Shubham-tech "Follow Me")
76 | [](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2FTechnical-Shubham-tech%2Fmedical-chat-app "Tweet")
77 | [](https://www.youtube.com/channel/UCNAz_hUVBG2ZUN8TVm0bmYw "Subscribe my Channel")
78 |
79 | ## :star: Give A Star
80 |
81 | You can also give this repository a star to show more people and they can use this repository.
82 |
83 | ## :red_circle: Expo Router Example
84 |
85 | Use [`expo-router`](https://expo.github.io/router "expo-router") to build native navigation using files in the `app/` directory.
86 |
87 | ## :rocket: How to use
88 |
89 | ```sh
90 | npx create-react-native-app -t with-router
91 | ```
92 |
93 | ## :page_with_curl: Notes
94 |
95 | - [Expo Router: Docs](https://expo.github.io/router "Expo Router: Docs")
96 | - [Expo Router: Repo](https://github.com/expo/router "Expo Router: Repo")
97 | - [Request for Comments](https://github.com/expo/router/discussions/1 "Request for Comments")
98 |
--------------------------------------------------------------------------------
/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "expo": {
3 | "scheme": "acme",
4 | "web": {
5 | "bundler": "metro"
6 | },
7 | "name": "jobs-react-native",
8 | "slug": "jobs-react-native",
9 | "description": "Find your perfect job",
10 | "ios": {
11 | "supportsTablet": true
12 | },
13 | "android": {
14 | "package": "com.shubham.jobs"
15 | },
16 | "extra": {
17 | "eas": {
18 | "projectId": "a20bed92-81d0-4234-b878-f1077cc5394c"
19 | }
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/app/_layout.js:
--------------------------------------------------------------------------------
1 | import React, { useCallback } from "react";
2 | import { Stack } from "expo-router";
3 | import { useFonts } from "expo-font";
4 | import * as SplashScreen from "expo-splash-screen";
5 |
6 | SplashScreen.preventAutoHideAsync();
7 |
8 | const Layout = () => {
9 | const [fontsLoaded] = useFonts({
10 | DMBold: require("../assets/fonts/DMSans-Bold.ttf"),
11 | DMMedium: require("../assets/fonts/DMSans-Medium.ttf"),
12 | DMRegular: require("../assets/fonts/DMSans-Regular.ttf"),
13 | });
14 |
15 | const onLayoutRootView = useCallback(async () => {
16 | if (fontsLoaded) {
17 | await SplashScreen.hideAsync();
18 | }
19 | }, [fontsLoaded]);
20 |
21 | if (!fontsLoaded) return null;
22 |
23 | return ;
24 | };
25 |
26 | export default Layout;
27 |
--------------------------------------------------------------------------------
/app/index.js:
--------------------------------------------------------------------------------
1 | import React, { useState } from "react";
2 | import { View, ScrollView, SafeAreaView, Linking } from "react-native";
3 | import { Stack, useRouter } from "expo-router";
4 |
5 | import { COLORS, icons, SIZES } from "../constants";
6 | import {
7 | Nearbyjobs,
8 | Popularjobs,
9 | ScreenHeaderBtn,
10 | Welcome,
11 | } from "../components";
12 |
13 | const Home = () => {
14 | const router = useRouter();
15 | const [searchTerm, setSearchTerm] = useState("");
16 |
17 | return (
18 |
19 | (
26 |
27 | ),
28 | headerRight: () => (
29 |
33 | Linking.openURL(
34 | "https://github.com/Technical-Shubham-tech/jobs-react-native"
35 | )
36 | }
37 | />
38 | ),
39 | headerTitle: "",
40 | }}
41 | />
42 |
43 |
44 |
50 | {
54 | if (searchTerm.trim().length > 0) {
55 | router.push(`/search/${searchTerm.trim()}`);
56 | }
57 | }}
58 | />
59 |
60 |
61 |
62 |
63 |
64 |
65 | );
66 | };
67 |
68 | export default Home;
69 |
--------------------------------------------------------------------------------
/app/job-details/[id].js:
--------------------------------------------------------------------------------
1 | import React, { useCallback, useState } from "react";
2 | import {
3 | Text,
4 | View,
5 | SafeAreaView,
6 | ScrollView,
7 | ActivityIndicator,
8 | RefreshControl,
9 | } from "react-native";
10 | import { Stack, useRouter, useSearchParams } from "expo-router";
11 |
12 | import {
13 | Company,
14 | JobAbout,
15 | JobFooter,
16 | JobTabs,
17 | ScreenHeaderBtn,
18 | Specifics,
19 | } from "../../components";
20 | import { COLORS, SIZES, icons } from "../../constants";
21 | import useFetch from "../../hook/useFetch";
22 |
23 | const tabs = ["About", "Qualifications", "Responsibilities"];
24 |
25 | const JobDetails = () => {
26 | const params = useSearchParams();
27 | const router = useRouter();
28 |
29 | const { data, isLoading, error, refetch } = useFetch("job-details", {
30 | job_id: params.id,
31 | });
32 |
33 | const [refreshing, setRefreshing] = useState(false);
34 | const [activeTab, setActiveTab] = useState(tabs[0]);
35 |
36 | const onRefresh = () =>
37 | useCallback(() => {
38 | setRefreshing(true);
39 | refetch();
40 | setRefreshing(false);
41 | }, []);
42 |
43 | const displayTabContent = () => {
44 | switch (activeTab) {
45 | case "Qualifications":
46 | return (
47 |
51 | );
52 | case "About":
53 | return (
54 |
55 | );
56 | case "Responsibilities":
57 | return (
58 |
62 | );
63 | default:
64 | break;
65 | }
66 | };
67 |
68 | return (
69 |
70 | (
78 | router.back()}
82 | />
83 | ),
84 | headerRight: () => (
85 |
86 | ),
87 | headerTitle: "",
88 | }}
89 | />
90 |
91 | <>
92 |
96 | }
97 | >
98 | {isLoading ? (
99 |
100 | ) : error ? (
101 | Something went wrong
102 | ) : data.length === 0 ? (
103 | No data
104 | ) : (
105 |
106 |
112 |
113 |
118 |
119 | {displayTabContent()}
120 |
121 | )}
122 |
123 |
124 |
130 | >
131 |
132 | );
133 | };
134 |
135 | export default JobDetails;
136 |
--------------------------------------------------------------------------------
/app/search/[id].js:
--------------------------------------------------------------------------------
1 | import React, { useEffect, useState } from "react";
2 | import {
3 | ActivityIndicator,
4 | FlatList,
5 | Image,
6 | TouchableOpacity,
7 | View,
8 | } from "react-native";
9 | import { Stack, useRouter, useSearchParams } from "expo-router";
10 | import { Text, SafeAreaView } from "react-native";
11 | import axios from "axios";
12 | import { RAPID_API_KEY } from "@env";
13 |
14 | const rapidApiKey = RAPID_API_KEY;
15 |
16 | import { ScreenHeaderBtn, NearbyJobCard } from "../../components";
17 | import { COLORS, icons, SIZES } from "../../constants";
18 | import styles from "../../styles/search";
19 |
20 | const JobSearch = () => {
21 | const params = useSearchParams();
22 | const router = useRouter();
23 |
24 | const [searchResult, setSearchResult] = useState([]);
25 | const [searchLoader, setSearchLoader] = useState(false);
26 | const [searchError, setSearchError] = useState(null);
27 | const [page, setPage] = useState(1);
28 |
29 | const handleSearch = async () => {
30 | setSearchLoader(true);
31 | setSearchResult([]);
32 |
33 | try {
34 | const options = {
35 | method: "GET",
36 | url: `https://jsearch.p.rapidapi.com/search`,
37 | headers: {
38 | "X-RapidAPI-Key": rapidApiKey,
39 | "X-RapidAPI-Host": "jsearch.p.rapidapi.com",
40 | },
41 | params: {
42 | query: params.id,
43 | page: page.toString(),
44 | },
45 | };
46 |
47 | const response = await axios.request(options);
48 | setSearchResult(response.data.data);
49 | } catch (error) {
50 | setSearchError(error);
51 | console.log(error);
52 | } finally {
53 | setSearchLoader(false);
54 | }
55 | };
56 |
57 | const handlePagination = (direction) => {
58 | if (direction === "left" && page > 1) {
59 | setPage(page - 1);
60 | handleSearch();
61 | } else if (direction === "right") {
62 | setPage(page + 1);
63 | handleSearch();
64 | }
65 | };
66 |
67 | useEffect(() => {
68 | handleSearch();
69 | }, []);
70 |
71 | return (
72 |
73 | (
78 | router.back()}
82 | />
83 | ),
84 | headerTitle: "",
85 | }}
86 | />
87 |
88 | (
91 | router.push(`/job-details/${item.job_id}`)}
94 | />
95 | )}
96 | keyExtractor={(item) => item.job_id}
97 | contentContainerStyle={{ padding: SIZES.medium, rowGap: SIZES.medium }}
98 | ListHeaderComponent={() => (
99 | <>
100 |
101 | {params.id}
102 | Job Opportunities
103 |
104 |
105 | {searchLoader ? (
106 |
107 | ) : (
108 | searchError && Oops something went wrong
109 | )}
110 |
111 | >
112 | )}
113 | ListFooterComponent={() => (
114 |
115 | handlePagination("left")}
118 | >
119 |
124 |
125 |
126 | {page}
127 |
128 | handlePagination("right")}
131 | >
132 |
137 |
138 |
139 | )}
140 | />
141 |
142 | );
143 | };
144 |
145 | export default JobSearch;
146 |
--------------------------------------------------------------------------------
/assets/adaptive-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/adaptive-icon.png
--------------------------------------------------------------------------------
/assets/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/favicon.png
--------------------------------------------------------------------------------
/assets/fonts/DMSans-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/fonts/DMSans-Bold.ttf
--------------------------------------------------------------------------------
/assets/fonts/DMSans-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/fonts/DMSans-Medium.ttf
--------------------------------------------------------------------------------
/assets/fonts/DMSans-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/fonts/DMSans-Regular.ttf
--------------------------------------------------------------------------------
/assets/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icon.png
--------------------------------------------------------------------------------
/assets/icons/amazon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icons/amazon.png
--------------------------------------------------------------------------------
/assets/icons/apple.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icons/apple.png
--------------------------------------------------------------------------------
/assets/icons/chevron-left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icons/chevron-left.png
--------------------------------------------------------------------------------
/assets/icons/chevron-right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icons/chevron-right.png
--------------------------------------------------------------------------------
/assets/icons/figma.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icons/figma.png
--------------------------------------------------------------------------------
/assets/icons/filter.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icons/filter.png
--------------------------------------------------------------------------------
/assets/icons/github.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icons/github.png
--------------------------------------------------------------------------------
/assets/icons/google.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icons/google.png
--------------------------------------------------------------------------------
/assets/icons/heart-ol.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icons/heart-ol.png
--------------------------------------------------------------------------------
/assets/icons/heart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icons/heart.png
--------------------------------------------------------------------------------
/assets/icons/left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icons/left.png
--------------------------------------------------------------------------------
/assets/icons/linkedin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icons/linkedin.png
--------------------------------------------------------------------------------
/assets/icons/location.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icons/location.png
--------------------------------------------------------------------------------
/assets/icons/menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icons/menu.png
--------------------------------------------------------------------------------
/assets/icons/microsoft.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icons/microsoft.png
--------------------------------------------------------------------------------
/assets/icons/search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icons/search.png
--------------------------------------------------------------------------------
/assets/icons/share.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icons/share.png
--------------------------------------------------------------------------------
/assets/icons/slack.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icons/slack.png
--------------------------------------------------------------------------------
/assets/icons/spotify.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icons/spotify.png
--------------------------------------------------------------------------------
/assets/icons/twitch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icons/twitch.png
--------------------------------------------------------------------------------
/assets/icons/twitter.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icons/twitter.png
--------------------------------------------------------------------------------
/assets/icons/wattpad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/icons/wattpad.png
--------------------------------------------------------------------------------
/assets/images/job.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/images/job.jpg
--------------------------------------------------------------------------------
/assets/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UltraDEV007/react-native-jobs/78c33f4b0933c2c0d627cf888fb1ce79bca76878/assets/splash.png
--------------------------------------------------------------------------------
/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = function (api) {
2 |
3 | api.cache(true);
4 |
5 | return {
6 | presets: ["babel-preset-expo"],
7 | plugins: [
8 | "@babel/plugin-proposal-export-namespace-from",
9 | "react-native-reanimated/plugin",
10 | [
11 | "module:react-native-dotenv",
12 | {
13 | moduleName: "@env",
14 | path: ".env",
15 | blacklist: null,
16 | whitelist: null,
17 | safe: false,
18 | allowUndefined: true,
19 | },
20 | ],
21 | require.resolve("expo-router/babel"),
22 | ],
23 | };
24 | };
25 |
--------------------------------------------------------------------------------
/components/common/cards/nearby/NearbyJobCard.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { View, Text, TouchableOpacity, Image } from "react-native";
3 |
4 | import { checkImageURL } from "../../../../utils";
5 | import styles from "./nearbyjobcard.style";
6 |
7 | // Nearby Job Card
8 | const NearbyJobCard = ({ job, handleNavigate }) => {
9 | return (
10 |
11 | {/* Job Logo */}
12 |
13 |
24 |
25 |
26 | {/* Job Info */}
27 |
28 | {/* Job Title */}
29 |
30 | {job.job_title}
31 |
32 |
33 | {/* Job Type */}
34 | {job.job_employment_type}
35 |
36 |
37 | );
38 | };
39 |
40 | export default NearbyJobCard;
41 |
--------------------------------------------------------------------------------
/components/common/cards/nearby/nearbyjobcard.style.js:
--------------------------------------------------------------------------------
1 | import { StyleSheet } from "react-native";
2 |
3 | import { COLORS, SHADOWS, SIZES } from "../../../../constants";
4 |
5 | // Nearby Job Card Styles
6 | const styles = StyleSheet.create({
7 | container: {
8 | flex: 1,
9 | justifyContent: "space-between",
10 | alignItems: "center",
11 | flexDirection: "row",
12 | padding: SIZES.medium,
13 | borderRadius: SIZES.small,
14 | backgroundColor: "#FFF",
15 | ...SHADOWS.medium,
16 | shadowColor: COLORS.white,
17 | },
18 | logoContainer: {
19 | width: 50,
20 | height: 50,
21 | backgroundColor: COLORS.white,
22 | borderRadius: SIZES.medium,
23 | justifyContent: "center",
24 | alignItems: "center",
25 | },
26 | logoImage: {
27 | width: "70%",
28 | height: "70%",
29 | },
30 | textContainer: {
31 | flex: 1,
32 | marginHorizontal: SIZES.medium,
33 | },
34 | jobName: {
35 | fontSize: SIZES.medium,
36 | fontFamily: "DMBold",
37 | color: COLORS.primary,
38 | },
39 | jobType: {
40 | fontSize: SIZES.small + 2,
41 | fontFamily: "DMRegular",
42 | color: COLORS.gray,
43 | marginTop: 3,
44 | textTransform: "capitalize",
45 | },
46 | });
47 |
48 | export default styles;
49 |
--------------------------------------------------------------------------------
/components/common/cards/popular/PopularJobCard.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { View, Text, TouchableOpacity, Image } from "react-native";
3 |
4 | import { checkImageURL } from "../../../../utils";
5 | import styles from "./popularjobcard.style";
6 |
7 | // Popular Job Card
8 | const PopularJobCard = ({ item, selectedJob, handleCardPress }) => {
9 | return (
10 | handleCardPress(item)}
13 | >
14 | {/* Job Icon */}
15 |
16 |
27 |
28 |
29 | {/* Company Name */}
30 |
31 | {item.employer_name}
32 |
33 |
34 | {/* Job Title */}
35 |
36 |
37 | {item.job_title}
38 |
39 |
40 | {/* Job Country */}
41 | {item.job_country}
42 |
43 |
44 | );
45 | };
46 |
47 | export default PopularJobCard;
48 |
--------------------------------------------------------------------------------
/components/common/cards/popular/popularjobcard.style.js:
--------------------------------------------------------------------------------
1 | import { StyleSheet } from "react-native";
2 |
3 | import { COLORS, FONT, SHADOWS, SIZES } from "../../../../constants";
4 |
5 | // Popular Job Card Styles
6 | const styles = StyleSheet.create({
7 | container: (selectedJob, item) => ({
8 | width: 250,
9 | padding: SIZES.xLarge,
10 | backgroundColor: selectedJob === item.job_id ? COLORS.primary : "#FFF",
11 | borderRadius: SIZES.medium,
12 | justifyContent: "space-between",
13 | ...SHADOWS.medium,
14 | shadowColor: COLORS.white,
15 | }),
16 | logoContainer: (selectedJob, item) => ({
17 | width: 50,
18 | height: 50,
19 | backgroundColor: selectedJob === item.job_id ? "#FFF" : COLORS.white,
20 | borderRadius: SIZES.medium,
21 | justifyContent: "center",
22 | alignItems: "center",
23 | }),
24 | logoImage: {
25 | width: "70%",
26 | height: "70%",
27 | },
28 | companyName: {
29 | fontSize: SIZES.medium,
30 | fontFamily: FONT.regular,
31 | color: "#B3AEC6",
32 | marginTop: SIZES.small / 1.5,
33 | },
34 | infoContainer: {
35 | marginTop: SIZES.large,
36 | },
37 | jobName: (selectedJob, item) => ({
38 | fontSize: SIZES.large,
39 | fontFamily: FONT.medium,
40 | color: selectedJob === item.job_id ? COLORS.white : COLORS.primary,
41 | }),
42 | infoWrapper: {
43 | flexDirection: "row",
44 | marginTop: 5,
45 | justifyContent: "flex-start",
46 | alignItems: "center",
47 | },
48 | publisher: (selectedJob) => ({
49 | fontSize: SIZES.medium - 2,
50 | fontFamily: FONT.bold,
51 | color: selectedJob === item.job_id ? COLORS.white : COLORS.primary,
52 | }),
53 | location: {
54 | fontSize: SIZES.medium - 2,
55 | fontFamily: FONT.regular,
56 | color: "#B3AEC6",
57 | },
58 | });
59 |
60 | export default styles;
61 |
--------------------------------------------------------------------------------
/components/common/header/ScreenHeaderBtn.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { TouchableOpacity, Image } from "react-native";
3 |
4 | import styles from "./screenheader.style";
5 |
6 | // Screen Header Button
7 | const ScreenHeaderBtn = ({ iconUrl, dimension, handlePress }) => {
8 | return (
9 |
10 | {/* Button Icon */}
11 |
16 |
17 | );
18 | };
19 |
20 | export default ScreenHeaderBtn;
21 |
--------------------------------------------------------------------------------
/components/common/header/screenheader.style.js:
--------------------------------------------------------------------------------
1 | import { StyleSheet } from "react-native";
2 |
3 | import { COLORS, SIZES } from "../../../constants";
4 |
5 | // Screen Header Button styles
6 | const styles = StyleSheet.create({
7 | btnContainer: {
8 | width: 40,
9 | height: 40,
10 | backgroundColor: COLORS.white,
11 | borderRadius: SIZES.small / 1.25,
12 | justifyContent: "center",
13 | alignItems: "center",
14 | },
15 | btnImg: (dimension) => ({
16 | width: dimension,
17 | height: dimension,
18 | borderRadius: SIZES.small / 1.25,
19 | }),
20 | });
21 |
22 | export default styles;
23 |
--------------------------------------------------------------------------------
/components/home/nearby/Nearbyjobs.jsx:
--------------------------------------------------------------------------------
1 | import React, { useState } from "react";
2 | import { useRouter } from "expo-router";
3 | import { View, Text, TouchableOpacity, ActivityIndicator } from "react-native";
4 |
5 | import styles from "./nearbyjobs.style";
6 | import { COLORS } from "../../../constants";
7 | import NearbyJobCard from "../../common/cards/nearby/NearbyJobCard";
8 | import useFetch from "../../../hook/useFetch";
9 |
10 | // Nearby Jobs
11 | const Nearbyjobs = () => {
12 | // use router
13 | const router = useRouter();
14 | // fetch search data
15 | const { data, isLoading, error, refetch } = useFetch("search", {
16 | query: "React Native developer",
17 | num_pages: "1",
18 | });
19 |
20 | // keep track of first api request
21 | const [first, setFirst] = useState(true);
22 |
23 | // refetch api data
24 | const fetch = () => {
25 | refetch();
26 | setFirst(false);
27 | };
28 |
29 | return (
30 |
31 | {/* Nearby Job Header */}
32 |
33 | Nearby jobs
34 |
35 | {/* Show all */}
36 |
37 | Show all
38 |
39 |
40 |
41 | {/* Nearby Job Content */}
42 |
43 | {isLoading ? (
44 | // Loader
45 |
46 | ) : error ? (
47 | // first error in fetching data
48 | first ? (
49 | // refetch data
50 | fetch()
51 | ) : (
52 | // something went wrong
53 | Something went wrong
54 | )
55 | ) : (
56 | // show nearby job card
57 | data?.map((job) => (
58 | router.push(`/job-details/${job.job_id}`)}
62 | />
63 | ))
64 | )}
65 |
66 |
67 | );
68 | };
69 |
70 | export default Nearbyjobs;
71 |
--------------------------------------------------------------------------------
/components/home/nearby/nearbyjobs.style.js:
--------------------------------------------------------------------------------
1 | import { StyleSheet } from "react-native";
2 |
3 | import { COLORS, FONT, SIZES } from "../../../constants";
4 |
5 | // Nearby Jobs Styles
6 | const styles = StyleSheet.create({
7 | container: {
8 | marginTop: SIZES.xLarge,
9 | },
10 | header: {
11 | flexDirection: "row",
12 | justifyContent: "space-between",
13 | alignItems: "center",
14 | marginTop: SIZES.small,
15 | },
16 | headerTitle: {
17 | fontSize: SIZES.large,
18 | fontFamily: FONT.medium,
19 | color: COLORS.primary,
20 | },
21 | headerBtn: {
22 | fontSize: SIZES.medium,
23 | fontFamily: FONT.medium,
24 | color: COLORS.gray,
25 | },
26 | cardsContainer: {
27 | marginTop: SIZES.medium,
28 | gap: SIZES.small,
29 | },
30 | });
31 |
32 | export default styles;
33 |
--------------------------------------------------------------------------------
/components/home/popular/Popularjobs.jsx:
--------------------------------------------------------------------------------
1 | import React, { useState } from "react";
2 | import {
3 | View,
4 | Text,
5 | TouchableOpacity,
6 | FlatList,
7 | ActivityIndicator,
8 | } from "react-native";
9 | import { useRouter } from "expo-router";
10 |
11 | import { COLORS, SIZES } from "../../../constants";
12 | import PopularJobCard from "../../common/cards/popular/PopularJobCard";
13 | import useFetch from "../../../hook/useFetch";
14 |
15 | import styles from "./popularjobs.style";
16 |
17 | // Popular Jobs
18 | const Popularjobs = () => {
19 | // use router
20 | const router = useRouter();
21 |
22 | // fetch search data from api
23 | const { data, isLoading, error, refetch } = useFetch("search", {
24 | query: "React Developer",
25 | num_pages: 1,
26 | });
27 |
28 | // keep track of first api request
29 | const [first, setFirst] = useState(true);
30 |
31 | // refecth api data
32 | const fetch = () => {
33 | refetch();
34 | setFirst(false);
35 | };
36 |
37 | // keep track of current selected job
38 | const [selectedJob, setSelectedJob] = useState("");
39 |
40 | // handle job card press
41 | const handleCardPress = (item) => {
42 | // redirect to job-details route
43 | router.push(`/job-details/${item.job_id}`);
44 | // set selected job
45 | setSelectedJob(item);
46 | };
47 | return (
48 |
49 | {/* Popular Jobs Header */}
50 |
51 | {/* Popular Jobs Title */}
52 | Popular Jobs
53 |
54 | {/* Show all */}
55 |
56 | Show all
57 |
58 |
59 |
60 |
61 | {/* fetching data */}
62 | {isLoading ? (
63 | // show loader
64 |
65 | ) : error ? (
66 | // error in fetching data
67 | first ? (
68 | // refetch data
69 | fetch()
70 | ) : (
71 | // something went wrong
72 | Something went wrong
73 | )
74 | ) : (
75 | // Show popular job card content
76 | (
79 |
84 | )}
85 | keyExtractor={(item) => item?.job_id}
86 | contentContainerStyle={{ columnGap: SIZES.medium }}
87 | horizontal
88 | />
89 | )}
90 |
91 |
92 | );
93 | };
94 |
95 | export default Popularjobs;
96 |
--------------------------------------------------------------------------------
/components/home/popular/popularjobs.style.js:
--------------------------------------------------------------------------------
1 | import { StyleSheet } from "react-native";
2 |
3 | import { FONT, SIZES, COLORS } from "../../../constants";
4 |
5 | // Popular Job Styles
6 | const styles = StyleSheet.create({
7 | container: {
8 | marginTop: SIZES.xLarge,
9 | },
10 | header: {
11 | flexDirection: "row",
12 | justifyContent: "space-between",
13 | alignItems: "center",
14 | },
15 | headerTitle: {
16 | fontSize: SIZES.large,
17 | fontFamily: FONT.medium,
18 | color: COLORS.primary,
19 | },
20 | headerBtn: {
21 | fontSize: SIZES.medium,
22 | fontFamily: FONT.medium,
23 | color: COLORS.gray,
24 | },
25 | cardsContainer: {
26 | marginTop: SIZES.medium,
27 | },
28 | });
29 |
30 | export default styles;
31 |
--------------------------------------------------------------------------------
/components/home/welcome/Welcome.jsx:
--------------------------------------------------------------------------------
1 | import React, { useState } from "react";
2 | import {
3 | View,
4 | Text,
5 | TextInput,
6 | TouchableOpacity,
7 | Image,
8 | FlatList,
9 | } from "react-native";
10 | import { useRouter } from "expo-router";
11 |
12 | import { icons, SIZES } from "../../../constants";
13 | import styles from "./welcome.style";
14 |
15 | // Job Types
16 | const jobTypes = ["Full-time", "Part-time", "Contractor"];
17 |
18 | // Welcome
19 | const Welcome = ({ searchTerm, setSearchTerm, handleClick }) => {
20 | // use router
21 | const router = useRouter();
22 | // current active job type
23 | const [activeJobType, setActiveJobType] = useState("Full-time");
24 |
25 | return (
26 |
27 | {/* Header */}
28 |
29 | Hello, Shubham
30 | Find your perfect job
31 |
32 |
33 | {/* Search Input Content */}
34 |
35 | {/* Search Input */}
36 |
37 | setSearchTerm(text)}
41 | placeholder="What are you looking for?"
42 | />
43 |
44 |
45 | {/* Search Button */}
46 |
47 |
52 |
53 |
54 |
55 | {/* Jobs Type Content */}
56 |
57 | {/* Show job list */}
58 | (
61 | {
64 | setActiveJobType(item);
65 | router.push(`/search/${item}`);
66 | }}
67 | >
68 | {/* active job name */}
69 | {item}
70 |
71 | )}
72 | keyExtractor={(item) => item}
73 | contentContainerStyle={{ columnGap: SIZES.small }}
74 | horizontal
75 | />
76 |
77 |
78 | );
79 | };
80 |
81 | export default Welcome;
82 |
--------------------------------------------------------------------------------
/components/home/welcome/welcome.style.js:
--------------------------------------------------------------------------------
1 | import { StyleSheet } from "react-native";
2 | import { COLORS, FONT, SIZES } from "../../../constants";
3 |
4 | // Welcome Styles
5 | const styles = StyleSheet.create({
6 | container: {
7 | width: "100%",
8 | },
9 | userName: {
10 | fontFamily: FONT.regular,
11 | fontSize: SIZES.large,
12 | color: COLORS.secondary,
13 | },
14 | welcomeMessage: {
15 | fontFamily: FONT.bold,
16 | fontSize: SIZES.xLarge,
17 | color: COLORS.primary,
18 | marginTop: 2,
19 | },
20 | searchContainer: {
21 | justifyContent: "center",
22 | alignItems: "center",
23 | flexDirection: "row",
24 | marginTop: SIZES.large,
25 | height: 50,
26 | },
27 | searchWrapper: {
28 | flex: 1,
29 | backgroundColor: COLORS.white,
30 | marginRight: SIZES.small,
31 | justifyContent: "center",
32 | alignItems: "center",
33 | borderRadius: SIZES.medium,
34 | height: "100%",
35 | },
36 | searchInput: {
37 | fontFamily: FONT.regular,
38 | width: "100%",
39 | height: "100%",
40 | paddingHorizontal: SIZES.medium,
41 | },
42 | searchBtn: {
43 | width: 50,
44 | height: "100%",
45 | backgroundColor: COLORS.tertiary,
46 | borderRadius: SIZES.medium,
47 | justifyContent: "center",
48 | alignItems: "center",
49 | },
50 | searchBtnImage: {
51 | width: "50%",
52 | height: "50%",
53 | tintColor: COLORS.white,
54 | },
55 | tabsContainer: {
56 | width: "100%",
57 | marginTop: SIZES.medium,
58 | },
59 | tab: (activeJobType, item) => ({
60 | paddingVertical: SIZES.small / 2,
61 | paddingHorizontal: SIZES.small,
62 | borderRadius: SIZES.medium,
63 | borderWidth: 1,
64 | borderColor: activeJobType === item ? COLORS.secondary : COLORS.gray2,
65 | }),
66 | tabText: (activeJobType, item) => ({
67 | fontFamily: FONT.medium,
68 | color: activeJobType === item ? COLORS.secondary : COLORS.gray2,
69 | }),
70 | });
71 |
72 | export default styles;
73 |
--------------------------------------------------------------------------------
/components/index.js:
--------------------------------------------------------------------------------
1 | // Contains all components to be used in other files.
2 | // Don't remove anything from here if not sure.
3 |
4 | import ScreenHeaderBtn from "./common/header/ScreenHeaderBtn";
5 |
6 | // home screen
7 | import Welcome from "./home/welcome/Welcome";
8 | import Nearbyjobs from "./home/nearby/Nearbyjobs";
9 | import Popularjobs from "./home/popular/Popularjobs";
10 |
11 | // job details screen
12 | import Company from "./jobdetails/company/Company";
13 | import { default as JobTabs } from "./jobdetails/tabs/Tabs";
14 | import { default as JobAbout } from "./jobdetails/about/About";
15 | import { default as JobFooter } from "./jobdetails/footer/Footer";
16 | import Specifics from "./jobdetails/specifics/Specifics";
17 |
18 | // common
19 | import NearbyJobCard from "./common/cards/nearby/NearbyJobCard";
20 |
21 | export {
22 | ScreenHeaderBtn,
23 | Welcome,
24 | Nearbyjobs,
25 | Popularjobs,
26 | Company,
27 | JobTabs,
28 | JobAbout,
29 | JobFooter,
30 | Specifics,
31 | NearbyJobCard,
32 | };
33 |
--------------------------------------------------------------------------------
/components/jobdetails/about/About.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { View, Text } from "react-native";
3 |
4 | import styles from "./about.style";
5 |
6 | // About
7 | const About = ({ info }) => {
8 | return (
9 |
10 | {/* Head Text */}
11 | About the job:
12 |
13 | {/* Body Text */}
14 |
15 | {info}
16 |
17 |
18 | );
19 | };
20 |
21 | export default About;
22 |
--------------------------------------------------------------------------------
/components/jobdetails/about/about.style.js:
--------------------------------------------------------------------------------
1 | import { StyleSheet } from "react-native";
2 |
3 | import { COLORS, FONT, SIZES } from "../../../constants";
4 |
5 | // About Styles
6 | const styles = StyleSheet.create({
7 | container: {
8 | marginTop: SIZES.large,
9 | backgroundColor: "#FFF",
10 | borderRadius: SIZES.medium,
11 | padding: SIZES.medium,
12 | },
13 | headText: {
14 | fontSize: SIZES.large,
15 | color: COLORS.primary,
16 | fontFamily: FONT.bold,
17 | },
18 | contentBox: {
19 | marginVertical: SIZES.small,
20 | },
21 | contextText: {
22 | fontSize: SIZES.medium - 2,
23 | color: COLORS.gray,
24 | fontFamily: FONT.regular,
25 | marginVertical: SIZES.small / 1.25,
26 | },
27 | });
28 |
29 | export default styles;
30 |
--------------------------------------------------------------------------------
/components/jobdetails/company/Company.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { View, Text, Image } from "react-native";
3 |
4 | import styles from "./company.style";
5 | import { icons } from "../../../constants";
6 | import { checkImageURL } from "../../../utils";
7 |
8 | // Company Styles
9 | const Company = ({ companyLogo, jobTitle, companyName, location }) => {
10 | return (
11 |
12 | {/* Company Logo */}
13 |
14 |
24 |
25 |
26 | {/* Job Title */}
27 |
28 | {jobTitle}
29 |
30 |
31 | {/* Company Info */}
32 |
33 | {/* Company Name */}
34 | {companyName} /
35 | {/* Location */}
36 |
37 | {/* Icon */}
38 |
43 | {/* Text */}
44 | {location}
45 |
46 |
47 |
48 | );
49 | };
50 |
51 | export default Company;
52 |
--------------------------------------------------------------------------------
/components/jobdetails/company/company.style.js:
--------------------------------------------------------------------------------
1 | import { StyleSheet } from "react-native";
2 |
3 | import { COLORS, FONT, SIZES } from "../../../constants";
4 |
5 | // Company Styles
6 | const styles = StyleSheet.create({
7 | container: {
8 | marginVertical: SIZES.medium,
9 | justifyContent: "center",
10 | alignItems: "center",
11 | },
12 | logoBox: {
13 | width: 80,
14 | height: 80,
15 | justifyContent: "center",
16 | alignItems: "center",
17 | backgroundColor: "#FFF",
18 | borderRadius: SIZES.large,
19 | },
20 | logoImage: {
21 | width: "80%",
22 | height: "80%",
23 | },
24 | jobTitleBox: {
25 | marginTop: SIZES.small,
26 | },
27 | jobTitle: {
28 | fontSize: SIZES.large,
29 | color: COLORS.primary,
30 | fontFamily: FONT.bold,
31 | textAlign: "center",
32 | },
33 | companyInfoBox: {
34 | marginTop: SIZES.small / 2,
35 | flexDirection: "row",
36 | justifyContent: "center",
37 | alignItems: "center",
38 | },
39 | companyName: {
40 | fontSize: SIZES.medium - 2,
41 | color: COLORS.primary,
42 | fontFamily: FONT.medium,
43 | },
44 | locationBox: {
45 | flexDirection: "row",
46 | justifyContent: "center",
47 | alignItems: "center",
48 | },
49 | locationImage: {
50 | width: 14,
51 | height: 14,
52 | tintColor: COLORS.gray,
53 | },
54 | locationName: {
55 | fontSize: SIZES.medium - 2,
56 | color: COLORS.gray,
57 | fontFamily: FONT.regular,
58 | marginLeft: 2,
59 | },
60 | });
61 |
62 | export default styles;
63 |
--------------------------------------------------------------------------------
/components/jobdetails/footer/Footer.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { View, Text, TouchableOpacity, Image, Linking } from "react-native";
3 |
4 | import { icons } from "../../../constants";
5 | import styles from "./footer.style";
6 |
7 | // Footer
8 | const Footer = ({ url }) => {
9 | return (
10 |
11 | {/* Like Button */}
12 |
13 |
18 |
19 |
20 | {/* Apply for Job */}
21 | Linking.openURL(url)}
24 | >
25 | Apply for Job
26 |
27 |
28 | );
29 | };
30 |
31 | export default Footer;
32 |
--------------------------------------------------------------------------------
/components/jobdetails/footer/footer.style.js:
--------------------------------------------------------------------------------
1 | import { StyleSheet } from "react-native";
2 |
3 | import { COLORS, FONT, SIZES } from "../../../constants";
4 |
5 | // Footer Styles
6 | const styles = StyleSheet.create({
7 | container: {
8 | position: "absolute",
9 | bottom: 0,
10 | left: 0,
11 | right: 0,
12 | padding: SIZES.small,
13 | backgroundColor: "#FFF",
14 | justifyContent: "space-between",
15 | alignItems: "center",
16 | flexDirection: "row",
17 | },
18 | likeBtn: {
19 | width: 55,
20 | height: 55,
21 | borderWidth: 1,
22 | borderColor: "#F37453",
23 | borderRadius: SIZES.medium,
24 | justifyContent: "center",
25 | alignItems: "center",
26 | },
27 | likeBtnImage: {
28 | width: "40%",
29 | height: "40%",
30 | tintColor: "#F37453",
31 | },
32 | applyBtn: {
33 | flex: 1,
34 | backgroundColor: "#FE7654",
35 | height: "100%",
36 | justifyContent: "center",
37 | alignItems: "center",
38 | marginLeft: SIZES.medium,
39 | borderRadius: SIZES.medium,
40 | },
41 | applyBtnText: {
42 | fontSize: SIZES.medium,
43 | color: COLORS.white,
44 | fontFamily: FONT.bold,
45 | },
46 | });
47 |
48 | export default styles;
49 |
--------------------------------------------------------------------------------
/components/jobdetails/specifics/Specifics.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { View, Text } from "react-native";
3 |
4 | import styles from "./specifics.style";
5 |
6 | // Specifics
7 | const Specifics = ({ title, points }) => {
8 | return (
9 |
10 | {/* title */}
11 | {title}:
12 |
13 | {/* content */}
14 |
15 | {points.map((item, index) => (
16 |
17 | {/* dot */}
18 |
19 | {/* item */}
20 | {item}
21 |
22 | ))}
23 |
24 |
25 | );
26 | };
27 |
28 | export default Specifics;
29 |
--------------------------------------------------------------------------------
/components/jobdetails/specifics/specifics.style.js:
--------------------------------------------------------------------------------
1 | import { StyleSheet } from "react-native";
2 |
3 | import { COLORS, FONT, SIZES } from "../../../constants";
4 |
5 | // Specifics Styles
6 | const styles = StyleSheet.create({
7 | container: {
8 | marginTop: SIZES.large,
9 | backgroundColor: "#FFF",
10 | borderRadius: SIZES.medium,
11 | padding: SIZES.medium,
12 | },
13 | title: {
14 | fontSize: SIZES.large,
15 | color: COLORS.primary,
16 | fontFamily: FONT.bold,
17 | },
18 | pointsContainer: {
19 | marginVertical: SIZES.small,
20 | },
21 | pointWrapper: {
22 | flexDirection: "row",
23 | justifyContent: "flex-start",
24 | alignItems: "flex-start",
25 | marginVertical: SIZES.small / 1.25,
26 | },
27 | pointDot: {
28 | width: 6,
29 | height: 6,
30 | borderRadius: 6,
31 | backgroundColor: COLORS.gray2,
32 | marginTop: 6,
33 | },
34 | pointText: {
35 | fontSize: SIZES.medium - 2,
36 | color: COLORS.gray,
37 | fontFamily: FONT.regular,
38 | marginLeft: SIZES.small,
39 | },
40 | });
41 |
42 | export default styles;
43 |
--------------------------------------------------------------------------------
/components/jobdetails/tabs/Tabs.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { View, Text, TouchableOpacity, FlatList } from "react-native";
3 |
4 | import { SIZES } from "../../../constants";
5 | import styles from "./tabs.style";
6 |
7 | // Tab Button
8 | const TabButton = ({ name, activeTab, onHandleSearchType }) => (
9 |
13 | {/* active tab name */}
14 | {name}
15 |
16 | );
17 |
18 | // Tabs
19 | const Tabs = ({ tabs, activeTab, setActiveTab }) => {
20 | return (
21 |
22 | {/* show all tabs */}
23 | (
26 | setActiveTab(item)}
30 | />
31 | )}
32 | horizontal
33 | showsHorizontalScrollIndicator={false}
34 | keyExtractor={(item) => item}
35 | contentContainerStyle={{ columnGap: SIZES.small / 2 }}
36 | />
37 |
38 | );
39 | };
40 |
41 | export default Tabs;
42 |
--------------------------------------------------------------------------------
/components/jobdetails/tabs/tabs.style.js:
--------------------------------------------------------------------------------
1 | import { StyleSheet } from "react-native";
2 |
3 | import { COLORS, SHADOWS, SIZES } from "../../../constants";
4 |
5 | // Tabs Styles
6 | const styles = StyleSheet.create({
7 | container: {
8 | marginTop: SIZES.small,
9 | marginBottom: SIZES.small / 2,
10 | },
11 | btn: (name, activeTab) => ({
12 | paddingVertical: SIZES.medium,
13 | paddingHorizontal: SIZES.xLarge,
14 | backgroundColor: name === activeTab ? COLORS.primary : "#F3F4F8",
15 | borderRadius: SIZES.medium,
16 | marginLeft: 2,
17 | ...SHADOWS.medium,
18 | shadowColor: COLORS.white,
19 | }),
20 | btnText: (name, activeTab) => ({
21 | fontFamily: "DMMedium",
22 | fontSize: SIZES.small,
23 | color: name === activeTab ? "#C3BFCC" : "#AAA9B8",
24 | }),
25 | });
26 |
27 | export default styles;
28 |
--------------------------------------------------------------------------------
/constants/icons.js:
--------------------------------------------------------------------------------
1 | // Contains all icons to be used in other files.
2 | // Don't remove anything from here if not sure.
3 |
4 | import heart from "../assets/icons/heart.png";
5 | import menu from "../assets/icons/menu.png";
6 | import search from "../assets/icons/search.png";
7 | import filter from "../assets/icons/filter.png";
8 | import left from "../assets/icons/left.png";
9 | import heartOutline from "../assets/icons/heart-ol.png";
10 | import share from "../assets/icons/share.png";
11 | import location from "../assets/icons/location.png";
12 | import chevronLeft from "../assets/icons/chevron-left.png";
13 | import chevronRight from "../assets/icons/chevron-right.png";
14 | import github from "../assets/icons/github.png";
15 |
16 | export default {
17 | heart,
18 | menu,
19 | search,
20 | filter,
21 | left,
22 | heartOutline,
23 | share,
24 | location,
25 | chevronLeft,
26 | chevronRight,
27 | github,
28 | };
29 |
--------------------------------------------------------------------------------
/constants/index.js:
--------------------------------------------------------------------------------
1 | // Contains all constants to be used in other files.
2 | // Don't remove anything from here if not sure.
3 |
4 | import icons from "./icons";
5 | import { COLORS, FONT, SIZES, SHADOWS } from "./theme";
6 |
7 | export { icons, COLORS, FONT, SIZES, SHADOWS };
8 |
--------------------------------------------------------------------------------
/constants/theme.js:
--------------------------------------------------------------------------------
1 | // Contains all theme styling to be used in other files.
2 | // Don't remove anything from here if not sure.
3 |
4 | // colors
5 | const COLORS = {
6 | primary: "#312651",
7 | secondary: "#444262",
8 | tertiary: "#FF7754",
9 |
10 | gray: "#83829A",
11 | gray2: "#C1C0C8",
12 |
13 | white: "#F3F4F8",
14 | lightWhite: "#FAFAFC",
15 | };
16 |
17 | // font
18 | const FONT = {
19 | regular: "DMRegular",
20 | medium: "DMMedium",
21 | bold: "DMBold",
22 | };
23 |
24 | // sizes
25 | const SIZES = {
26 | xSmall: 10,
27 | small: 12,
28 | medium: 16,
29 | large: 20,
30 | xLarge: 24,
31 | xxLarge: 32,
32 | };
33 |
34 | // shadows
35 | const SHADOWS = {
36 | small: {
37 | shadowColor: "#000",
38 | shadowOffset: {
39 | width: 0,
40 | height: 2,
41 | },
42 | shadowOpacity: 0.25,
43 | shadowRadius: 3.84,
44 | elevation: 2,
45 | },
46 | medium: {
47 | shadowColor: "#000",
48 | shadowOffset: {
49 | width: 0,
50 | height: 2,
51 | },
52 | shadowOpacity: 0.25,
53 | shadowRadius: 5.84,
54 | elevation: 5,
55 | },
56 | };
57 |
58 | export { COLORS, FONT, SIZES, SHADOWS };
59 |
--------------------------------------------------------------------------------
/eas.json:
--------------------------------------------------------------------------------
1 | {
2 | "build": {
3 | "preview": {
4 | "android": {
5 | "buildType": "apk"
6 | }
7 | },
8 | "preview2": {
9 | "android": {
10 | "gradleCommand": ":app:assembleRelease"
11 | }
12 | },
13 | "preview3": {
14 | "developmentClient": true
15 | },
16 | "production": {}
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/hook/useFetch.js:
--------------------------------------------------------------------------------
1 | import React, { useState, useEffect } from "react";
2 | import axios from "axios";
3 | import { RAPID_API_KEY } from "@env";
4 |
5 | // rapid api key
6 | const rapidApiKey = RAPID_API_KEY;
7 |
8 | // fetch data from api
9 | const useFetch = (endpoint, query) => {
10 |
11 | // keep track of data, loading and error
12 | const [data, setData] = useState([]);
13 | const [isLoading, setIsLoading] = useState(false);
14 | const [error, setError] = useState(null);
15 |
16 | // api options
17 |
18 | const options = {
19 | method: "GET",
20 | url: `https://jsearch.p.rapidapi.com/${endpoint}`,
21 | headers: {
22 | "X-RapidAPI-Key": rapidApiKey,
23 | "X-RapidAPI-Host": "jsearch.p.rapidapi.com",
24 | },
25 | params: { ...query },
26 |
27 | };
28 |
29 | // fetch data
30 | const fetchData = async () => {
31 |
32 | // set loading to true
33 | setIsLoading(true);
34 |
35 | try {
36 | // request data
37 | const response = await axios.request(options);
38 |
39 | // set data
40 | setData(response.data.data);
41 | } catch (error) {
42 | // handle api fetch errors
43 | setError(error);
44 | console.log(error);
45 | } finally {
46 | // set loading to false
47 | setIsLoading(false);
48 | }
49 | };
50 |
51 | // fetch data on load
52 | useEffect(() => {
53 | fetchData();
54 | }, []);
55 |
56 | // refetch data if needed
57 | const refetch = () => {
58 | setIsLoading(true);
59 | fetchData();
60 | };
61 |
62 | return { data, isLoading, error, refetch };
63 |
64 | };
65 |
66 | export default useFetch;
67 |
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | import "expo-router/entry";
2 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "scripts": {
3 | "start": "expo start",
4 | "android": "expo start --android",
5 | "ios": "expo start --ios",
6 | "web": "expo start --web"
7 | },
8 | "dependencies": {
9 | "axios": "^1.6.8",
10 | "dotenv": "^16.4.5",
11 | "expo": "^51.0.21",
12 | "expo-constants": "^15.4.6",
13 | "expo-font": "^12.0.9",
14 | "expo-linking": "~6.2.2",
15 | "expo-router": "^3.4.8",
16 | "expo-splash-screen": "~0.26.4",
17 | "expo-status-bar": "~1.12.1",
18 | "expo-updates": "~0.25.21",
19 | "json5": "2.2.3",
20 | "react": "18.2.0",
21 | "react-dom": "18.2.0",
22 | "react-native": "0.74.1",
23 | "react-native-dotenv": "^3.4.11",
24 | "react-native-gesture-handler": "~2.17.1",
25 | "react-native-reanimated": "~3.11.0",
26 | "react-native-safe-area-context": "4.10.1",
27 | "react-native-screens": "~3.32.0",
28 | "react-native-web": "~0.19.11",
29 | "xml2js": "0.6.2"
30 | },
31 | "devDependencies": {
32 | "@babel/core": "^7.24.5",
33 | "@babel/plugin-proposal-export-namespace-from": "^7.18.9"
34 | },
35 | "resolutions": {
36 | "metro": "^0.73.7",
37 | "metro-resolver": "^0.73.7"
38 | },
39 | "overrides": {
40 | "metro": "^0.73.7",
41 | "metro-resolver": "^0.73.7"
42 | },
43 | "name": "jobs-react-native",
44 | "version": "1.0.0",
45 | "private": true,
46 | "license": "MIT",
47 | "author": "Sanidhya Kr. Verma",
48 | "description": "The Next Generation Job Finder App using React Native",
49 | "keywords": [
50 | "reactjs",
51 | "react",
52 | "react-native",
53 | "job-web-app",
54 | "modern-ui/ux",
55 | "js",
56 | "javascript",
57 | "html",
58 | "css"
59 | ]
60 | }
61 |
--------------------------------------------------------------------------------
/styles/search.js:
--------------------------------------------------------------------------------
1 | // Contains all search styles to be used in search files.
2 | // Don't remove anything from here if not sure.
3 |
4 | import { StyleSheet } from "react-native";
5 |
6 | import { COLORS, FONT, SIZES } from "../constants";
7 |
8 | // Search Styles
9 | const styles = StyleSheet.create({
10 | container: {
11 | width: "100%",
12 | },
13 | searchTitle: {
14 | fontFamily: FONT.bold,
15 | fontSize: SIZES.xLarge,
16 | color: COLORS.primary,
17 | },
18 | noOfSearchedJobs: {
19 | marginTop: 2,
20 | fontFamily: FONT.medium,
21 | fontSize: SIZES.small,
22 | color: COLORS.primary,
23 | },
24 | loaderContainer: {
25 | marginTop: SIZES.medium,
26 | },
27 | footerContainer: {
28 | marginTop: SIZES.small,
29 | justifyContent: "center",
30 | alignItems: "center",
31 | flexDirection: "row",
32 | gap: 10,
33 | },
34 | paginationButton: {
35 | width: 30,
36 | height: 30,
37 | borderRadius: 5,
38 | justifyContent: "center",
39 | alignItems: "center",
40 | backgroundColor: COLORS.tertiary,
41 | },
42 | paginationImage: {
43 | width: "60%",
44 | height: "60%",
45 | tintColor: COLORS.white,
46 | },
47 | paginationTextBox: {
48 | width: 30,
49 | height: 30,
50 | borderRadius: 2,
51 | justifyContent: "center",
52 | alignItems: "center",
53 | backgroundColor: COLORS.white,
54 | },
55 | paginationText: {
56 | fontFamily: FONT.bold,
57 | fontSize: SIZES.medium,
58 | color: COLORS.primary,
59 | },
60 | });
61 |
62 | export default styles;
63 |
--------------------------------------------------------------------------------
/utils/index.js:
--------------------------------------------------------------------------------
1 | // Check if image url is correct
2 | export const checkImageURL = (url) => {
3 | if (!url) return false;
4 | else {
5 | const pattern = new RegExp(
6 | "^https?:\\/\\/.+\\.(png|jpg|jpeg|bmp|gif|webp)$",
7 | "i"
8 | );
9 | return pattern.test(url);
10 | }
11 | };
12 |
--------------------------------------------------------------------------------