Giter Site home page Giter Site logo

react-native-book-app's Introduction

React Native Book List App

This is a sample application that makes use of reanimateed, shared elements transitions and lottie to deliver a smooth native experience with delightlful animations.

Goals

  • Find and save books in list
  • Native app experience
  • UI thread 60 fps animations
  • Shared element transtions
  • Flatlist animations
  • Drag to navigate / close (AppStore stlye)
  • Reanimated 2 support
  • Integrated Lottie animations
  • Haptics for nagivation
  • Expo without ejecting
  • Global themeing with light & dark modes
  • AsyncStorage for lists
  • Clean code with ES Lint
  • iOS + Android support

Code Structure

There are 3 main screens: list screen, search screen and book details. There's a fun intro / welcome screen with lottie animations as well.
Important Code:
src/screens/...jsx App Screens
src/components/...jsx Reusable Components
src/anims/...json Lotties Animations
src/theme.js Themes for light and dark
src/RootNavigator.jsx App navigation

Dependencies

I wanted to keep the dependencies outside of React Native & Expo to a minimum. The app relies on the following libraries as core, others you see in package.json are optional.

react-navigation
expo-haptics (remove if you don't want haptics)
lottie-react-native (remove if you don't need lottie)
react-native-reanimated
react-native-shared-element
react-navigation-shared-element

Reference Material

Reanimated 2
https://docs.swmansion.com/react-native-reanimated/docs

Shared Element Navigation
https://github.com/IjzerenHein/react-navigation-shared-element/blob/navigation-v5/README.md

Lottie Animations
https://github.com/lottie-react-native/lottie-react-native

Android
If you're running into issues with Android please make sure to check that reanimated and shared navigation element (v5) are installed properly with the right versions and Layout Animations have been enabled.

React Native Community
Was this helpful? Want to see more code like this? Would you like this as an template? Just want share your thoughts? Catch me at @himanshuchauu.

Caffeine Appreciation

react-native-book-app's People

Contributors

himanchau avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.