Skip to content

Filters progress #2362

@jakex7

Description

@jakex7

Hi everyone!
We've been working on implementing filters in react-native-svg for a while now. This update is intended to inform you about our progress and facilitate discussion on implementation and future plans.

Progress

Here is a list of the filters along with annotations on their current status:

Filter component

Filters

Example usage

import React from 'react';
import { FeColorMatrix, Filter, Rect, Svg } from 'react-native-svg';

export default () => {
  return (
    <Svg height="300" width="300">
      <Filter id="myFilter">
        <FeColorMatrix type="saturate" values="0.2" />
      </Filter>
      <Rect
        x="0"
        y="0"
        width="300"
        height="300"
        fill="red"
        filter="url(#myFilter)"
      />
    </Svg>
  );
};

This issue is the successor to #150 and address the #176 #635 #883 #1216

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions