• Stars
    star
    894
  • Rank 51,071 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 5 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

📱 A repo that contains React Native & Expo examples, mostly related to articles & tutorials I publish on my blog.

React Native Examples

made with expo supports iOS and Android follow @amanhimself

Why react-native-examples

I am passionate about React Native and Expo ecosystem and one thing I often struggled with is the lack of resources when I was getting started. My another passion is for writing and I though why not combine these two and see how it goes.

I write about React Native and Expo form of blog posts, and tutorials on my personal blog amanhimself.dev and sometimes for other external publications such as LogRocket, freeCodeCamp, Snetry and Jscrambler. This repository is a collection of examples created for those blog posts.

With time, it gets harder to maintain different repositories, update the code and dependencies (and trying to match up with the speed of ever-changing ecosystem). Thus, I decided to keep all of projects/exmaples that are mostly code examples used in these various tutorials in one place and hence, this repository.

It's completely free. If you find anything useful in this repo, go ahead pick up any code snippet, use it in your own way.

You may find some of the examples being outdated in time, in terms of framework updates or libraries. Don't worry the concept would be the same. Feel free top up an issue or a PR if you feel like somethings needs to be changed.

To keep me caffeinated, you can buy me a coffee too ☕️

Buy Me a Coffee at ko-fi.com


Add opacity to Pressable component

This example uses:

  • Expo SDK 48

Remove Header Border Width in React Navigation

This example uses:

Deep Linking with React Native and React Navigation v6

This example uses:

useInfiniteQuery hook from React Query and FlatList

This example uses:

Show/Hide Password Visibility Custom Hook

This example uses:

  • Expo SDK 48

Safe Area Context in React Native and Expo apps

This example uses:

Add splash screen and app icon

This example uses:

Multi-language Support Example

Learn how to add multi-language support to a React Native app using i18next.

This example uses:

  • React Native version 0.64.1
  • React Navigation v6
  • react-native-localize
  • i18next
  • react-i18next
  • @react-native-async-storage/async-storage

Expo Firebase Auth Example

Learn how to integrate Firebase Auth service using Firebase JS SDK and Expo SDK (by generating a managed workflow app).

This example uses:

  • Expo SDK version 41.x.x
  • Firebase JS SDK
  • React Navigation version 5.x.x
  • Managing Environment Variables with app.config.json

Create a custom Image Gallery Preview

Learn how to sync thumbnail using FlatList with Carousel from react-native-snap-carousel.

This example uses:

Convert Reverse Geocode into Postal Address

Fetch user's current location and then convert into actual postal address.

This example uses:

Create a Translucent Bottom Tab Bar

This example uses:

Shared Element transitions

This example uses:

Custom scroll bar indicator in ScrollView with Animated API

  • 🐙 Repo
  • 📝 Blog post
  • Description: The implementation of a scroll bar indicator is not directly customizable on cross-platforms in React Native. If you are building an app whose screen design depends on displaying a customized scroll bar indicator, then let's build one in this tutorial. This example uses:

Redux Persist

  • 🐙 Repo
  • 📝 Blog post
  • Description: How to configure, integrate and use redux-persist library in a React Native & Expo app and dynamically change the UI based on the state updates. This example uses:
    • Expo SDK 40
    • react-navigation v5 (bottom-tabs)
    • redux, react-redux (with hooks), redux-thunk, redux-persist
    • Example API data from Draftbit's Example Data Service.

Forms with Formik

  • 🐙 Repo
  • 📝 Blog post
  • Description: In this post, let's take a look at how to integrate Formik along with Yup in a React Native app to create forms and validate them. We are also going to cover how to change the focus of one input field to another using a device's keyboard by forwarding the ref created using a useRef hook.

Animated Header View on a Scroll with React Native Animated API

  • 🐙 Repo
  • 📝 Blog post
  • Description: In this tutorial, let's explore a way to create a header view component that animates on the scroll position of the ScrollView component from React Native. We will go through the basics of creating a new Animated value as well as explaining the significance of functions and properties like interpolation, extrapolate, contentOffset, and so on. This example uses:
    • Expo SDK 38
    • React Native Animated API

Chat app with Expo + Firebase + Firestore + react-native-gifted-chat + react-native-paper + react-navigation v5

Create onBoarding screens with react-native-viewpager

  • 🐙 Repo
  • 📝 Blog post
  • Description: In this tutorial, we’ll look at one of the ways to create onboarding screens in a React Native app. We are going to use a React Native community package, called react-native-viewpager, that allows us to swipe left or right between different pages where each page has some data to display.

Remove Tab bar Border Width

This example uses:

Create Custom Custom Wavy Headers with react-native-svg

Using Styled Components in React Native and Expo

Using react-native-image-picker

Handle Navigation in WebViews

Getting Started with react-navigation v5

Nesting Tab and Stack Navigation Patterns in react-navigation v5

Getting Started with Expo and React Native with Hooks & Redux (Hooks!)

Change status bar style config based on route with useIsFocused & react-navigation v6

Uses

Create a custom hook to change status bar styles with useFocusEffect & react-navigation v6

Warning Example Outdated. I wrote this status bar hook without knowing that the React Navigation library provides a useIsFocused hook. I updated my example using their technique that also works nicely with expo-status-bar.

More Repositories

1

awesome-twitter-bots

🌟Resource repo for Twitter Bots 🐦
197
star
2

gatsby-bulma-quickstart

🚀 + ⚛️ A Quick Way to bootstrap your next Gatsby + Bulma site.
JavaScript
85
star
3

rn-minimalist-weather-app

Minimalist Weather App using React Native
JavaScript
60
star
4

gatsby-starter-ceevee

🚀 Gatsby Starter - CeeVee
CSS
60
star
5

nodejs-tweet

Nodejs Twitter Bot that retweets, favorites, and replies.
JavaScript
40
star
6

mobilenet-tfjs-expo

⚛️ 📱 MobileNet Image Classification with TensorFlow and Expo
JavaScript
38
star
7

amanhimself.dev

Personal website and blog.
JavaScript
27
star
8

deploy-mern-on-heroku

Example of deploying a MERN Stack on Heroku
JavaScript
27
star
9

rnSocialApp

🔥⚛️ 📱RN + Firebase Social App
JavaScript
25
star
10

fakerjs

Playing with Faker.js to Mock Data in Node.js apps
JavaScript
24
star
11

rnfirebaseauth

JavaScript
24
star
12

rnReduxhooks

Redux + React Hooks in a React Native app example
JavaScript
23
star
13

offline-todolist-app

⚛️📱 Using AsyncStorage, learn how to build a realtime React Native app
JavaScript
19
star
14

gatsby-portfolio-v3

🚀 ⚛️ Gatsby Starter Timeline Theme
JavaScript
19
star
15

nodejs-restapi

Design a REST API with Node.js and MongoDB Atlas
JavaScript
17
star
16

react-youtube-search

⚛️ React with YouTube API
JavaScript
17
star
17

blog-examples

A collection of examples for blog post demos
JavaScript
16
star
18

rn-pomodoro-example

⚛️ + 📱 React Native + Redux integaration
JavaScript
16
star
19

rnPhoneAuthDemo

🔥⚛️📱Phone Auth with React Native + Firebase
JavaScript
16
star
20

awesome-vulcan

🗒 A list of resources to learn awesome VulcanJS 🖖
15
star
21

music-player-expo

⚛️📱Simple Audio Player app in React Native and Expo
JavaScript
14
star
22

expressjs-vscode

🚀 Expressjs Snippets for VSCode
13
star
23

twitter-clone-apollo-server

Web server with Nodejs, Apollo Server, GraphQL API and MongoDB
JavaScript
12
star
24

atom-nodejs-snippets

Collection of Nodejs and Javascript snippets
JavaScript
12
star
25

tbrlist-amplify

React Native, Expo, AWS Amplify, AppAsync TBR LIST app
JavaScript
10
star
26

RNfirebase-chat

⚛️ + 📱 React Native + Firebase Chat App
JavaScript
10
star
27

stoic-api

Get random Stoic Quotes, used in tweetback-bot
JavaScript
9
star
28

gatsby-starter-product-guy

🚀 Gatsby Starter Theme
CSS
9
star
29

not-hotdog-app

A Not hotdog clone using React Native and Expo
JavaScript
8
star
30

mern-material-demo

Fullstack App with auth (JWT) using MERN and Material UI
JavaScript
8
star
31

geoWeatherApp

React Native Weather App, Geolocation API Demo
Objective-C
7
star
32

react-pwa-app

React PWA example
JavaScript
7
star
33

fileupload-example

Node + Reactjs Fileupload Example
JavaScript
7
star
34

RNHooksTODOAPP

⚛️ 📱 React Native + React Hooks Demo (Todo App) ⭐
JavaScript
7
star
35

react-animated-dots

⚛️ Three dots loader for Reactjs Applications
JavaScript
7
star
36

qrCodeScanner

QR Code Scanner Demo with react-native-camera
Objective-C
6
star
37

pinchZoomGesture

Pinch to Zoom Gesture Demo using react-native-gesture-handler
Objective-C
6
star
38

jade

Jade/Pug Snippets for Atom Editor
JavaScript
6
star
39

amplify-auth-expo-demo

Amplify Auth Demo with React Native and Expo
JavaScript
6
star
40

google-vision-rn-demo

⚛️ + 📱 React Native + Expo + Google Vision API Demo
JavaScript
6
star
41

serverless-lambda-demo

Severless Demo
JavaScript
5
star
42

RNDialogflowChatbot

⚛️ +📱 React Native + Dialogflow Date Chatbot
Objective-C
5
star
43

pug-vscode

Pug/Jade Snippets for VSCode
5
star
44

newsApiDemo

⚛️ 📱 React Native + NewsApi.org Demo
JavaScript
5
star
45

aws-serverless-demo

AWS Lambda + Nodejs Demo
JavaScript
5
star
46

rnFirestoreUploadExample

🔥⚛️ 📱RN + Firestore upload example
JavaScript
5
star
47

koa-rest-api-tut

testing out Koa to build a simple REST Api
JavaScript
5
star
48

rnDeepLinkingDemo

React Native Deep Linking with react-navigation
Objective-C
4
star
49

ionic-checklists

Repeatable ToDo Tasks using Ionic
TypeScript
4
star
50

find-me

⚛️ + 📱 Location + Permissions in Expo app
JavaScript
4
star
51

robotize

Generates a robots.txt
JavaScript
4
star
52

rni18nDemo

react-native-localize with i18n-js demo
Objective-C
4
star
53

findCoordsApp

⚛️ + 📱 Location + Permissions in RN-CLI generated app
Objective-C
4
star
54

expressjs

Collection of Expressjs snippets for Atom
JavaScript
4
star
55

rn-lottie-example

Using Lottie with React Native
JavaScript
3
star
56

gatsby-blog-starter

Gatsby Blog Demo
CSS
3
star
57

apollo-client-react-demo

bare minimum Apollo Client + React Demo
JavaScript
3
star
58

dotfiles

My dot file(s)
Shell
3
star
59

searchableFlatListDemo

FlatList search bar tutorial based Crowdbotics blueprint for Contacts screen
JavaScript
3
star
60

tweetback-bot

Tweet my links
JavaScript
3
star
61

console-snippets-vscode

All JavaScript console snippets to save your time.
3
star
62

my-app

GitHub Actions with EAS Update example
JavaScript
3
star
63

CheckQuarantineLevel

⚛️ 📱 A fun app built for JScrambler tutorial to showcase Expo fonts and a bit of momentjs
JavaScript
2
star
64

killEgo

Ego is the Enemy
JavaScript
2
star
65

ionic-pass-data-pages

Passing Data between Pages in an Ionic App
TypeScript
2
star
66

weather-cards

Weather Cards UI in React Native
JavaScript
2
star
67

twitter-clone-apollo-client

JavaScript
2
star
68

rn-xylophone-app

A simple Audio app using React Native and Expo
JavaScript
2
star
69

mean-auth-backend

User Auth MEAN Stack Boilerplate Backend
JavaScript
2
star
70

ng-pwa-demo

Angular PWA app demo
TypeScript
2
star
71

gratitude-bot

Send a gratitude message to the 🐦 followers
JavaScript
2
star
72

react-native-simple-card

⚛️ + 📱 Simple Card View for React Native and Expo applications.
JavaScript
2
star
73

ionic-basic-todo

Basic Todo App using Ionic Storage
TypeScript
2
star
74

my-medium-articles-api

API for my personal articles on published on Medium
JavaScript
2
star
75

RNWebviewsDemo

A guide to get started with WebView in React Native and with react-navigation
Objective-C
1
star
76

ng2-smart-table-example

Angular 6 + ng2-smart-table
TypeScript
1
star
77

portfolio-v2

Previous personal website design using Materialize CSS
HTML
1
star
78

serverless-slackbot

Serverless Slack Bot
JavaScript
1
star
79

gatsby-portoflio-v1

Portfolio Theme in Gatsbyjs
JavaScript
1
star
80

favorite-bot

Twitter Bot
JavaScript
1
star
81

nextjs-demo-app

JavaScript
1
star
82

mean-auth

Simple Token based authentication using MEAN Stack
JavaScript
1
star
83

educativeRNCourse

1
star
84

eslint-config-amanhimself

⚛️ + 📱 ESLint config for React Native and Expo apps
JavaScript
1
star
85

awscertified-twitter-bot

Twitter bot for #AWSCertified community hosted by freeCodeCamp
JavaScript
1
star
86

rnNavApp

⚛️ + 📱 react-navigation Example
JavaScript
1
star
87

botwhoreads

A Twitter bot in Node.js for readers and writers that recommend books
JavaScript
1
star
88

token-auth

Token based Authentication with Nodejs
JavaScript
1
star
89

next-contentful-blog-example

Next.js + Contentful blog Deploy Hook example
JavaScript
1
star
90

ng4-GithubProfileSearch

Angular 4 Github Profile Finder
TypeScript
1
star
91

startrek

npm module to insert inspiring StarTrek quotes into a site/application.
JavaScript
1
star
92

ionic-use-font-awesome

Use FontAwesome in an Ionic app (config & setup)
CSS
1
star
93

RNFirestoreDemo

RN + Firestore int. demo
Objective-C
1
star
94

startrek-names

Node.js module to randomly generate StarTrek character names in a site/application or use within command-line
JavaScript
1
star