cawfree / react-native-basement

🍭🧁⛱️📦Cache all kinds of remote dependencies.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

📦 react-native-basement

code style: prettier

React Native Basement defines a way to easily cache remote dependencies, whether they're images, JSON or raw file content. Using the useBasement hook, extensible declarative resource caching is a breeze. 🌊

Caching support is a little patchy in React Native. For example, there's iOS-only support for the Image component, or dedicated libraries for specific kinds of content.

If you're only interested in caching images, I'd suggest taking a look at react-native-cached-image. If you're interested in caching anything else, such as SVGs or Lottie Animations, then this project is your friend! (Yes, it does images too, just not as optimally by comparison!)

🚀 installing

yarn add react-native-basement # or npm i -s react-native-basement

That's about it! Please check out the Getting Started guide for integration details. There's also an included Example App.

✌️ licence

MIT

About

🍭🧁⛱️📦Cache all kinds of remote dependencies.

License:MIT License


Languages

Language:JavaScript 37.7%Language:Java 21.7%Language:Ruby 18.5%Language:Objective-C 15.3%Language:Starlark 6.7%