@ernesto_tech/expo-gl-image-filters
TypeScript icon, indicating that this package has built-in type declarations

0.7.1 • Public • Published

Stand With Ukraine

icon @ernesto_tech/expo-gl-image-filters

react-native-gl-image-filters is released under the MIT license. Current npm package version. Current npm package downloads. Expo snack. Stackblitz project.

OpenGL bindings for React Native to implement complex effects over images and components, in the descriptive VDOM paradigm. You can use predefined filters:

  • blur
  • contrast
  • saturation
  • brightness
  • hue
  • negative
  • sepia
  • sharpen
  • temperature
  • exposure.

gl-react-native is an implementation of gl-react for react-native. Please read the main gl-react README and gl-react-native README for more information.

Table of Contents

API

Props

Props for ImageFilters Component

Name Description Type Required Default Value
children Inner component or url for image Any +
width Width of component Number +
height Height of component Number +
hue Hue filter Number 0
blur Blur filter Number 0
sepia Sepia filter Number 0
sharpen Sharpen filter Number 0
negative Negative filter Number 0
contrast Contrast filter Number 1
saturation Saturation filter Number 1
brightness Brightness filter Number 1
temperature Temperature filter Number 6500
exposure Exposure filter Number 0
🆕 colorOverlay Color Overlay with the length of 4 (RGBA format). Values must be a real value between 0 and 255. Array [0.0, 0.0, 0.0, 0.0]

Constants

DefaultValues

Can be used to set filter to default one manually.

Readme

Keywords

Package Sidebar

Install

npm i @ernesto_tech/expo-gl-image-filters

Weekly Downloads

3

Version

0.7.1

License

MIT

Unpacked Size

108 kB

Total Files

76

Last publish

Collaborators

  • ernesto_tech