react-native-blur icon indicating copy to clipboard operation
react-native-blur copied to clipboard

Invariant Violation: requireNativeComponent: "BlurView" was not found in the UIManager.

Open nasyx-rakeeb opened this issue 2 years ago • 10 comments

I installed this package in expo managed project but it fails to compile and throws this error

nasyx-rakeeb avatar Aug 24 '22 07:08 nasyx-rakeeb

// update

I tried it out with a custom development client and it seems to work :-).

RRaideRR avatar Aug 25 '22 07:08 RRaideRR

I installed this package in expo managed project but it fails to compile and throws this error

I am getting the same error. Is there any solution?

orhangazi avatar Oct 25 '22 16:10 orhangazi

@orhangazi use expo-blur instead

nasyx-rakeeb avatar Oct 25 '22 17:10 nasyx-rakeeb

@nasyx-rakeeb I need to blur the view content. expo-blur, unfortunately, does not blur its content.

orhangazi avatar Oct 25 '22 17:10 orhangazi

oh, BlurView doesn't work in expo, you can try it in Bare Workflow of custom dev client

nasyx-rakeeb avatar Oct 25 '22 18:10 nasyx-rakeeb

I tried and it is working in Bare Workflow of custom dev client but it is not practical. I am sad to hear this. Thank you.

orhangazi avatar Oct 26 '22 16:10 orhangazi

// به روز رسانی

من آن را با یک مشتری توسعه سفارشی امتحان کردم و به نظر می رسد کار می کند :-).

Can you guide me in what way?

themehdihn avatar Apr 01 '23 08:04 themehdihn

its solved for me by adding this line implementation('com.eightbitlab:blurview:1.6.6') { force = true } in folder blur/android/build.gradle

kevin-patel9 avatar Apr 14 '23 06:04 kevin-patel9

@kevin-patel9 where did you add the line inside that file?

Mashnoor123 avatar Oct 31 '23 18:10 Mashnoor123

I tried declaring it like this

import { BlurView } from "@react-native-community/blur"; instead of import { BlurView } from "react-native-blur";

antoniuschan99 avatar Dec 06 '23 07:12 antoniuschan99