React-native-blur: red border, no vibrancy/blur

Created on 1 Jul 2016  ·  7Comments  ·  Source: Kureev/react-native-blur

Using your example, both Blur- and VibrancyView seem to have a transparent background, and a red border. No other errors in the console.

Most helpful comment

Just ran into this now. It seems react-native link doesn't pick up on the module. I had to run rnpm link react-native-blur for it to link correctly. I forgot the --save flag while installing... :facepalm: Working nicely!

All 7 comments

Hi @brumm! Seems you forgot to link a native part of the module. To make it easier for people, we created rnpm. If you're using latest React Native, you can also use react-native link.

Weird, I could've sworn that I did link it, I'll check again.

Not sure what happened, but it works now :) Thanks for your time!

@Kureev Hey!
I already linked and still not working:

image

My code:

 <View style={styles.row}>
        <BlurView shouldRasterizeIOS={false} blurType="light" style={{flex: 1}}>
           <TouchableHighlight onPress={this._onPressButton} style={styles.rowButton}>

              <View>

              <Text>Test</Test>

              </View>

            </TouchableHighlight>
           </BlurView>
      </View>

The only thing I can say that you didn't link it properly. This red border tells you that your native component is not found. Consider removing the plugin and linking it using react-native link

Just ran into this now. It seems react-native link doesn't pick up on the module. I had to run rnpm link react-native-blur for it to link correctly. I forgot the --save flag while installing... :facepalm: Working nicely!

just ran into it now - deleting the app on the phone, and react-native run-ios again seemed to do the trick...

Was this page helpful?
0 / 5 - 0 ratings