Skip to content

Commit

Permalink
chore: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
gtokman committed Jun 18, 2023
1 parent 87f82a9 commit 5ae92fc
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ BlurView for React Native (iOS only). Supports variable intensity and tint color

## Preview

https://github.com/candlefinance/blur-view/assets/12258850/53f5a05f-7594-4f7e-acbc-997b10ee4345
https://github.com/candlefinance/blur-view/assets/12258850/66fc73aa-7160-41b2-97cd-a406440e372e

## Installation

Expand All @@ -27,6 +27,20 @@ import { BlurView } from '@candlefinance/blur-view';
blurRadius={10}
style={styles.top}
/>;

// Compatible use with Reanimated v3
const animatedProps = useAnimatedProps(() => {
const blurRadius = interpolate(
scrollY.value,
input,
output,
Extrapolate.CLAMP
);

return {
blurRadius,
};
});
```

## Docs
Expand Down

0 comments on commit 5ae92fc

Please sign in to comment.