feat: properly implement filter region unit USER_SPACE_ON_USE (#2486)

# Summary

After deep dive into the specification, I found out that the default
filter subregion is not equal to `0% 0% 100% 100%`, rather the size of
the parent filter region.

## Compatibility

| OS      | Implemented |
| ------- | :---------: |
| iOS     |          |
| MacOS   |          |
| Android |          |
This commit is contained in:
Jakub Grzywacz
2024-10-14 15:35:16 +02:00
committed by GitHub
parent 3aae632d1f
commit 8fed77476b
5 changed files with 57 additions and 29 deletions
+2 -6
View File
@@ -16,12 +16,8 @@ export default class FilterPrimitive<P> extends Component<
[x: string]: unknown;
root: (FilterPrimitive<P> & NativeMethods) | null = null;
static defaultPrimitiveProps: React.ComponentProps<typeof FilterPrimitive> = {
x: '0%',
y: '0%',
width: '100%',
height: '100%',
};
static defaultPrimitiveProps: React.ComponentProps<typeof FilterPrimitive> =
{};
refMethod: (instance: (FilterPrimitive<P> & NativeMethods) | null) => void = (
instance: (FilterPrimitive<P> & NativeMethods) | null