2016-07-01 08:12:28 +00:00
|
|
|
import React, {Component} from 'react';
|
|
|
|
import {
|
2015-10-05 20:41:32 +00:00
|
|
|
AppRegistry,
|
|
|
|
StyleSheet,
|
|
|
|
Text,
|
|
|
|
Image,
|
2016-07-01 08:12:28 +00:00
|
|
|
} from 'react-native';
|
|
|
|
import {BlurView, VibrancyView} from 'react-native-blur';
|
2015-10-05 20:41:32 +00:00
|
|
|
|
|
|
|
const styles = StyleSheet.create({
|
|
|
|
container: {
|
|
|
|
flex: 1,
|
|
|
|
justifyContent: 'center',
|
|
|
|
backgroundColor: 'transparent',
|
|
|
|
},
|
|
|
|
welcome: {
|
|
|
|
fontSize: 20,
|
|
|
|
textAlign: 'center',
|
|
|
|
margin: 10,
|
|
|
|
color: '#FFFFFF',
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2016-07-01 08:12:28 +00:00
|
|
|
const background = 'http://iphonewallpapers-hd.com/thumbs/firework_iphone_wallpaper_5-t2.jpg';
|
2015-10-05 20:41:32 +00:00
|
|
|
|
|
|
|
class Basic extends Component {
|
|
|
|
render() {
|
|
|
|
return (
|
2016-07-01 08:12:28 +00:00
|
|
|
<Image source={{uri: background}} style={styles.container}>
|
2015-10-05 20:41:32 +00:00
|
|
|
<BlurView blurType="light" style={styles.container}>
|
|
|
|
<Text style={styles.welcome}>Blur component</Text>
|
|
|
|
</BlurView>
|
|
|
|
|
|
|
|
<VibrancyView blurType="dark" style={styles.container}>
|
|
|
|
<Text style={styles.welcome}>Vibrancy component</Text>
|
|
|
|
</VibrancyView>
|
|
|
|
</Image>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
AppRegistry.registerComponent('Basic', () => Basic);
|