Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
react-native-effects-view
Advanced tools
ReactNative Component that makes easy to use iOS8 UIVisualEffect
Component to make easy use of iOS8
UIVisualEffectViews
withUIBlurEffect
andUIVibrancyEffect
in ReactNative.
npm install react-native-effects-view --save
Add Files to..
node_modules/react-native-effects-view
and select DVEffects
folderrequire('react-native-effects-view')
inside your app!blurStyle
(String) - choose one of the following:
"light"
(default)"extraLight"
"dark"
vibrantContent
(ReactElement) - render vibrant content inside blurred view.All children of <EffectsView />
will be blurred, however you can use it without children and position element on top of background images and other views.
In order to see usage example check example/EffectsApp
folder in XCode (don't forget to run npm install
inside). It contains the app presented by screenshot.
var React = require('react-native');
var EffectsView = require('react-native-effects-view');
var { AppRegistry, StyleSheet, View } = React;
var App = React.createClass({
renderVibrant() {
return (
<View>
<Text style={styles.text}>Do you feel blurry??</Text>
</View>
);
},
render() {
return (
<EffectsView
style={styles.view}
blurStyle="dark"
vibrantContent={this.renderVibrant()}
>
<Image style={styles.bg} source={require('image!bg')} />
</EffectsView>
);
}
});
var styles = StyleSheet.create({
bg: {
flex: 1,
position: 'absolute',
bottom: 0,
left: 0,
right: 0,
top: 0,
justifyContent: 'center',
alignItems: 'center',
},
view: {
flex: 1
},
text: {
fontSize: 20,
color: 'white',
textAlign: 'center',
},
});
AppRegistry.registerComponent('App', () => App);
Demo app is inspired by UIVisualEffects repo.
MIT Licensed
FAQs
ReactNative Component that makes easy to use iOS8 UIVisualEffect
The npm package react-native-effects-view receives a total of 7 weekly downloads. As such, react-native-effects-view popularity was classified as not popular.
We found that react-native-effects-view demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.