Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • NextJS
  • Material UI
  • React Bootstrap
  • React Suite
  • Ant Design
  • Reactstrap
  • BlueprintJS
  • React Desktop
  • React Native
  • React Rebass
  • React Spring
  • React Evergreen
  • ReactJS
  • ReactJS
  • JS Formatter
  • Web Technology
Open In App
Next Article:
Create a Phonebook and Call App using React-Native
Next article icon

Create a Portfolio App using React-Native

Last Updated : 25 Jul, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

In this article, we are going to Create a portfolio app using React Native. The portfolio app is a simple application that is a collection of a person's qualifications, achievements, work samples, and other relevant materials. It is used to demonstrate one's abilities and suitability for a particular role or program.

Preview of final output: Let us have a look at how the final output will look like.

portfolio
Preview

Prerequisites:

  • React Native
  • React Native State
  • React Native Props

Approach to create Portfolio App:

  • The portfolio app is a simple application that is a collection of a person's qualifications, achievements, work samples, and other relevant materials.
  • User can see the their details which includes their name, skillset , technology known etc.
  • We also added a project details option in the bottom tab navigation screen by which user can navigate to the project list which was created by them.

Steps to Create React Native Application:

Step 1: Create a react native application by using this command in the command prompt

React-native init PortfolioApp

Step 2: Installing the required packages.

npm install @react-navigation/native
npm install react-native-screens react-native-safe-area-context
npm install @react-navigation/bottom-tabs

Step 3: We will use some Icons in our app so, we will install dependency for icon

npm i react-native-vector-icons

Project Structure:

stru
Structure of project

The updated dependencies in package.json file will look like:

 "dependencies": {
"react-native-paper": "*",
"@expo/vector-icons": "^13.0.0",
"@react-navigation/native": "6.0.0",
"expo-contacts": "~12.2.0",
"expo-status-bar": "~1.6.0",
"expo-permissions": "~14.2.1",
"react-native-screens": "~3.22.0",
"react-native-contacts": "^7.0.8",
"@react-navigation/stack": "^6.3.20",
"react-native-permissions": "^4.0.0",
"react-native-gesture-handler": "~2.12.0",
"react-native-safe-area-context": "4.6.3",
"@react-navigation/bottom-tabs": "*"
}

Example: Write the below source code into the App.js file.

JavaScript
// App.js import React from 'react'; import { NavigationContainer } 	from '@react-navigation/native'; import { createBottomTabNavigator } 	from '@react-navigation/bottom-tabs'; import Home from './Home'; import Projects from './Projects';  const Tab = createBottomTabNavigator();  const App = () => { 	return ( 		<NavigationContainer> 			<Tab.Navigator 				tabBarOptions={{ 					activeTintColor: '#61dafb', 					inactiveTintColor: '#999', 					labelStyle: { 						fontSize: 16, 						fontWeight: 'bold', 					}, 				}} 				style= 				{ 					{ backgroundColor: '#90EE90' } 				}> 				<Tab.Screen name="Home" 					component={Home} /> 				<Tab.Screen name="Projects" 					component={Projects} /> 			</Tab.Navigator> 		</NavigationContainer> 	); };  export default App; 
JavaScript
// Home.js import React from 'react'; import { 	View, Text, 	StyleSheet, Image } from 'react-native';  const technologies = 	[ 		'React Native', 		'JavaScript', 		'Node.js', 		'Express', 		'MongoDB' 	];  const Home = () => { 	const renderTechBoxes = () => { 		return ( 			<View style={styles.techContainer}> 				{technologies 					.map((tech, index) => ( 						<View key={index} 							style={styles.techBox}> 							<Text style={styles.techText}> 								{tech} 							</Text> 						</View> 					))} 			</View> 		); 	};  	return ( 		<View style={styles.container}> 			<Image source= 				{ 					{ 						uri: 'https://media.geeksforgeeks.org/wp-content/uploads/20231103122512/p.png' 					} 				} style={styles.profileImage} /> 			<Text style={styles.header}> 				Manish Prajapat 			</Text> 			<Text style={styles.subheader}> 				React Native Developer 			</Text> 			<Text style={styles.description}> 				Welcome to my portfolio app! I am a 				passionate developer with expertise 				in building cross-platform mobile applications 				using React Native. 			</Text> 			<Text style={styles.subheader}> 				Technologies Known 			</Text> 			{renderTechBoxes()} 		</View> 	); };  const styles = StyleSheet.create({ 	container: { 		flex: 1, 		justifyContent: 'center', 		alignItems: 'center', 		padding: 20, 	}, 	profileImage: { 		width: 150, 		height: 150, 		borderRadius: 75, 		marginBottom: 20, 	}, 	header: { 		fontSize: 24, 		fontWeight: 'bold', 		color: 'black' 	}, 	subheader: { 		fontSize: 18, 		color: '#666', 		marginBottom: 20, 	}, 	description: { 		fontSize: 16, 		textAlign: 'center', 		marginBottom: 20, 	}, 	techContainer: { 		flexDirection: 'row', 		flexWrap: 'wrap', 		justifyContent: 'center', 	}, 	techBox: { 		backgroundColor: '#61dafb', 		borderRadius: 5, 		padding: 5, 		margin: 5, 	}, 	techText: { 		color: '#fff', 	}, });  export default Home; 
JavaScript
// Projects.js import React from 'react'; import { 	View, Text, 	StyleSheet, FlatList, 	TouchableOpacity } from 'react-native';  const projectsData = [ 	{ 		id: '1', 		title: 'Ticket booking app', 		description: `A React Native ticket booking app allows  					users to browse, select, and book tickets for 					various events, movies, or transportation  					services with an intuitive mobile interface.`, 		technologies: ['React Native', 'Firebase', 'Redux'], 	}, 	{ 		id: '2', 		title: 'Food recipe app', 		description: `A React Native food recipe app  					offers a simple and interactive  					platform for users to discover, explore,  					and cook a variety of recipes, enhancing  					their culinary experience on mobile devices.`, 		technologies: ['React Native', 'Node.js', 'Express', 'MongoDB'], 	}, 	{ 		id: '3', 		title: 'Spotify clone', 		description: `A React Native Spotify clone replicates  					the popular music streaming service,  					providing users with a familiar interface  					to discover, play, and create playlists,  					bringing the Spotify experience to mobile devices.`, 		technologies: ['React Native', 'Firebase', 'Redux'], 	},  ];  const Projects = () => { 	return ( 		<View style={styles.container}> 			<Text style={styles.header}> 				Projects 			</Text> 			<FlatList 				data={projectsData} 				keyExtractor={(item) => item.id} 				renderItem={({ item }) => ( 					<TouchableOpacity 						style={styles.projectItem}> 						<Text style={styles.projectTitle}> 							{item.title} 						</Text> 						<Text style={styles.projectDescription}> 							{item.description} 						</Text> 						<View style={styles.technologiesContainer}> 							{item.technologies 								.map((tech, index) => ( 									<View key={index}  										style={styles.techBox}> 										<Text style={styles.techText}> 											{tech} 										</Text> 									</View> 								))} 						</View> 					</TouchableOpacity> 				)} 			/> 		</View> 	); };  const styles = StyleSheet.create({ 	container: { 		flex: 1, 		padding: 20, 	}, 	header: { 		fontSize: 24, 		fontWeight: 'bold', 		marginBottom: 20,  	}, 	projectItem: { 		backgroundColor: '#fff', 		borderRadius: 10, 		padding: 15, 		marginBottom: 20, 		elevation: 3, 	}, 	projectTitle: { 		fontSize: 18, 		fontWeight: 'bold', 		marginBottom: 5, 		color: 'black', 	}, 	projectDescription: { 		fontSize: 16, 		color: '#666', 		marginBottom: 10, 	}, 	technologiesContainer: { 		flexDirection: 'row', 		flexWrap: 'wrap', 	}, 	techBox: { 		backgroundColor: '#61dafb', 		borderRadius: 5, 		padding: 5, 		marginRight: 5, 		marginBottom: 5, 	}, 	techText: { 		color: '#fff', 	}, });  export default Projects; 

Step to Run the Project:

Step 1: Depending on your operating system, type the following command

  • For android:
React-native run-android
  • For IOS:
React-native run-ios

Output:


Next Article
Create a Phonebook and Call App using React-Native

N

nitesh5mdxiq
Improve
Article Tags :
  • Project
  • Web Technologies
  • ReactJS
  • Geeks Premier League
  • React-Native
  • Geeks Premier League 2023

Similar Reads

  • Create a Crypto Prediction App using React Native
    Crypto Prediction App using React Native allows users to fetch real-time cryptocurrency prices and predict future price movements based on historical data. Users can enter the symbol of the cryptocurrency they're interested in, fetch its current price, and make predictions using simple logic. Output
    3 min read
  • Create a Blog App using React-Native
    This article shows how to create a basic blog app using react native. This app contains functionalities such as adding a blog and a delete button to remove the blogs using react native. The user can enter content with a title and then click on 'Add New Post' to create a new blog post Preview of fina
    4 min read
  • Create a Voice Notes App using React-Native
    We are going to build a Voice Notes app that will allow us to save our voice as a recording in our application. It is similar to a notes app but we will have our voice as notes. We can play the voice recordings, record them, and delete them. It leverages React-Native's cross-platform capabilities to
    5 min read
  • Create a Video Player App using React-Native
    React-Native is an open-source JavaScript framework used to broaden cross-platform packages i.e., you may write code in React-Native and publish it as an Android or IOS app. In this article, we will build a Video Player app with the usage of React-Native. The app will run on both Android and IOS. Pr
    4 min read
  • Create a Phonebook and Call App using React-Native
    React-Native is an open-source framework used to develop cross-platform applications i.e., you can write code in React-Native and publish it as an Android or IOS app. In this article, we will build a basic Phonebook and call app using React-Native. The phonebook app will show all the contacts from t
    5 min read
  • Create a Camera App using React-Native
    A camera app using react native is a mobile application that is designed to capture photos or videos using the built-in camera functionality of a mobile device. In this article, you will learn how you can create a camera app with simple steps. Output Preview: Let us have a look at how the final appl
    3 min read
  • Create a Chatbot App using React-Native
    Creating a chatbot app using React Native will be an exciting project. In this article, we are going to implement a Chatbot App using React Native. Chatbot App is a mobile application that answers the user's questions on the basis of their previous learning or content provided by developers. It help
    4 min read
  • Create a Compass App using React-Native
    In this project, we'll create a Compass App using React Native. The app will display real-time compass heading information, along with additional details such as cardinal direction. The user interface will include a rotating compass image to provide a visual representation of the device's orientatio
    3 min read
  • Create a Voting App using React-Native
    Voting involves assessing multiple entities based on specific criteria. This article guides the creation of a basic voting app, where users can compare and evaluate options. The application allows users to make choices, making it a valuable tool for decision-making and gathering opinions. We will cr
    3 min read
  • Create a Stock Market Prediction App using React-Native
    We'll walk through the process of building a Stock Market Prediction App using React Native. The app will allow users to input a stock symbol, fetch real-time stock data, and even predict the price for the next trading day. Let's dive into the details! Preview of final output: Let us have a look at
    4 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences