rnw

react-native-webp

react-native-webp adds support for WebP images for react-native components.

Showing:

Popularity

Downloads/wk

2

Maintenance

No Maintenance Data Available

Package

Dependencies

1

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

react-native-webp adds support for WebP images for react-native components.

Installation

  1. npm install https://github.com/dbasedow/react-native-webp.git --save
  2. rnpm link (or manually add module to your project)
  3. Open your project in xcode
  4. Right click your project root and select "Add Files to ..."
  5. Select "WebP.framework" from node_modules/react-native-webp/ and click "OK"
  6. Select your Target
  7. Select "Build Settings"
  8. Add "$(SRCROOT)/../node_modules/react-native-webp" to the "Framework Search Path"

Usage

You don't have to do anything other than use WebP images. This project adds a custom RCTImageDataDecoder to your project, so all react-native components should be able to use WebP files. If you are using custom components that work with UIImages directly (without using RCTImageDataDecoder) you will have to change that code.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial