Code Monkey home page Code Monkey logo

minipokedex's Introduction

Mini Pokédex 🐸

Welcome to this (very light) Pokédex app !

I’ve focused mostly on performance. The app features a smooth grid of Pokémon optimised with recyclerlistview and react-native-fast-image. It uses a performant cache and react-query which enabled me to cache data very easily. However, using third party code can prove costly in terms of maintenance and flexibility: in a real life setting, I might design a more custom solution for fetching and caching data to keep full technical ownership of that part of the code. The Pokémon detail screen is almost empty and should show a clear overview of the Pokémon (type, species, abilities, stats, strengths and weaknesses, evolutions…). Unfortunately, I ran out of time for that.

Running the app 🐸

Install dependencies

yarn install

Install pods

cd ios
pod install

Open ios/PokedexApp.xcworkspace in Xcode and run the app with the PokedexApp-Release scheme.

Running tests 🏗

yarn test

Performance 🚀

  • Uses Hermes
  • Uses recyclerlistview rather than FlatList
  • Uses react-native-mmkv (performant cache that uses JSI)

Further marginal improvements could be gained by using native navigation and react-native-bundle-splitter.

Missing

  • The unit tests aren’t complete (I’ve sketched out a few essential ones in HomeScreen.test.tsx)
  • The PokemonDetail screen is basically empty (didn’t have time)

Potential improvements

  • Adding a proper splashscreen (github react-native-bootsplash can help)
  • Replacing MMKV with WatermelonDB might be a good choice, especially if the cached data grows more complex
  • Benchmarking the app with react-native-performance
  • Generating API types either through GraphQL or OpenAPI
  • Better error states and “retry” buttons
  • Adding an app icon

minipokedex's People

Contributors

koheku avatar

Stargazers

Piotr Ziółko avatar

Watchers

James Cloos 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.