Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
react-native-blur
Advanced tools
Component implementation for UIVisualEffectView's blur and vibrancy effect. Check the roadmap here
npm install react-native-blur
Add Files to <...>
node_modules
➜ react-native-blur
➜ add RNBlur
and RNVibrancy
foldersFirst of all, if you don't want to read it, you can just clone the repo and go into examples/basic
folder to try out working example.
To use blur
view, you need to require BlurView
to your module and insert <BlurView>
tag inside render function as it's done below:
var BlurView = require('react-native-blur').BlurView;
var Menu = React.createClass({
render: function() {
return (
<Image source={{uri}} style={styles.menu}>
<BlurView blurType="light" style={styles.blur}>
<Text>Hi, I am a tiny menu item</Text>
</BlurView>
</Image>
);
}
});
In this example, Image
component will be blurred, a BlurView
content will stay untouched.
The vibrancy effect lets the content underneath a blurred view show through more vibrantly
var VibrancyView = require('react-native-blur').VibrancyView;
var Menu = React.createClass({
render: function() {
return (
<Image source={{uri}} style={styles.menu}>
<VibrancyView blurType="light" style={styles.blur}>
<Text>Hi, I am a tiny menu item</Text>
</VibrancyView>
</Image>
);
}
});
blurType
String:(xlight|light|dark) - blur type effectFeel free to contact me in twitter or create an issue
FAQs
React Native Blur component
The npm package react-native-blur receives a total of 603 weekly downloads. As such, react-native-blur popularity was classified as not popular.
We found that react-native-blur demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.