Kureev / react-native-blur

React Native Blur component
MIT License
3.74k stars 555 forks source link

BlurView not found in '@react-native-community/blur' #508

Open aryella-lacerda opened 1 year ago

aryella-lacerda commented 1 year ago

I installed the eslint-plugin-import in my JS project. My .eslintrc looks like this:

module.exports = {
  root: true,
  extends: ['@react-native-community', 'plugin:import/recommended'],
  settings: {
    'import/ignore': ['node_modules/react-native/index\\.js$'],
  },
};

It began complaining about this line:

import {BlurView} from '@react-native-community/blur';

This was the ESLint error:

BlurView not found in '@react-native-community/blur' eslint(import/named)

Does anyone understand why or how to fix it? 🤔 Without disabling the rule for this line, preferably?

chenop commented 1 year ago

There is confusion with the domain of the package in Android. check what is the domain in: in ./node_modules/@react-native-community/blur/android/src/main/java/com/reactnativecommunity/blurview/BlurViewManager.java

and compare it to what stated in MainApplication.java. should be the same: import com.reactnativecommunity.blurview.BlurViewPackage; I found that (and it is wrong): import com.import com.cmcewen.blurview.BlurViewPackage;

kalpitshah72 commented 1 week ago

Were you able to fix it? @aryella-lacerda