Skip to content

React Native Chat App with integrations like crypto quotes, mapping

Notifications You must be signed in to change notification settings

csjcode/rancho-chat

Repository files navigation

rancho-chat

React Native Chat App with Crypto, Mapping

Intro

This is an early-stage ongoing app -- representing less than 2 months work -- but I prioritized another app now, so have made this public for anybody to look at, use and contribute.

  • You are welcome to add revisions, PRs or additional feedback including ideas for me or anybody to work on.
  • Feel free to contact me through email, Twitter or LinkedIn, or make a Zoom appt.
  • I do plan to pick this up again, just right now my plate is full!

Purpose

  • This was created as a GENERIC chat mobile app, with the idea of using it as a "skeleton" STARTER for a variety of startup ideas.
  • In other words - if you are creating X type of app and want to incorporate WhatsApp-style functionality as part of the app.
  • Therefore, there is very little branding and only basic styling. Many decisions are left open to the builder.
  • It does not use tailwind (usually NativeWind in React Native), although it can easily be added, and you can refactor the existing styles to tailwind quickly with chatgpt.

Required to fork/use with Expo

It's a working app. You can use the code and install/start up with Expo.

You may need to fork or copy the code to your own new Expo app. But the code does work as of May 1 2023. I just tried it! I've used it both on my phone with the Expo app and Android Studio.

REQUIREMENTS:

  • You will have to add your own Firebase database (it's free, signup with Google, but you need to create an API key).
  • I will add more info about that soon with the schema, or you can infer it from the SDK in the code.

Features and more info

It's uses React Native and Expo and includes Redux RTK for state management, Typescript, many other mobile Expo libraries.

I started with some Whatsapp-style Chat functionality, but then did a lot of additional refactoring and added a "Tricks" page to experiment with React Native sensors and functionality.

  • Login, Authentication/Authorization
  • User profile
  • Person to Person Chat, realtime db-based, not socket
  • Group Chat, multiple people chat
  • Archived chats
  • Image upload/share
  • Form validation
  • There is a Mapping component with customized pins by location.
  • There is a very basic crypto api call to get some crypto prices. I've done more complex crypto dashboards before but just wanted to get something in there, while I explored various ideas, so what is there for that part is extremely limited so far.
  • There is Light/Dark theme switching
  • Redux RTK state management and form validation
  • Jest unit tests and snapshot tests

This was created as a white-label, generic app for usage in other future Web3 projects and parts were also in with a React native course I took - I combined my interests, and then refactored the code substantially to Typescript (from original Javascript).

Ideas for improvements

  1. Add Solana Pay, web3.js or other Wallets and ability to add products. I've already done this for Web (see my public repos) but have not done it yet for this React Native app.
  2. Add ability to use coupons and mint coupons.
  3. Add more mapping and map related functionality.
  4. Refactor the Typescript and styles.
  5. Improve the styling - it's pretty basic.
  6. Build out the crypto quote functionality, perhaps add NFTs.
  7. Add your own!

README TODO: Add Firebase schema and key/.env example with sample data here

About

React Native Chat App with integrations like crypto quotes, mapping

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published