Skip to content

Commit aeb9395

Browse files
authored
Update README.md
Fixed example code
1 parent e207552 commit aeb9395

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,19 +110,20 @@ export default class Menu extends Component {
110110
render() {
111111
return (
112112
<View style={styles.container}>
113-
<Text>Hi, I am some unblurred text</Text>
113+
<Image
114+
key={'blurryImage'}
115+
source={{ uri }}
116+
style={styles.absolute}
117+
/>
118+
<Text style={styles.absolute}>Hi, I am some blurred text</Text>
119+
{/* in terms of positioning and zIndex-ing everything before the BlurView will be blurred */}
114120
<BlurView
115121
style={styles.absolute}
116122
viewRef={this.state.viewRef}
117123
blurType="light"
118124
blurAmount={10}
119-
>
120-
<Text>I'm the BlurView content on both iOS and Android</Text>
121-
</BlurView>
122-
<Image
123-
source={{ uri }}
124-
style={styles.absolute}
125125
/>
126+
<Text>I'm the non blurred text because I got rendered on top of the BlurView</Text>
126127
</View>
127128
);
128129
}

0 commit comments

Comments
 (0)