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

Expo Go ERROR Blurhash.encode in 2.0.3

Open yonac1 opened this issue 1 year ago • 1 comments

Bug

Describe the bug This Code throws error...

import { Blurhash } from "react-native-blurhash";

  const onPressPic = async () => {
    try {
        const newBlurHash = await Blurhash.encode(
          "https://picsum.photos/200/300",
          4,
          3
        );
        console.log(newBlurHash);
      }
    } catch (error) {
      console.log(error);
    }
  };


The error: 
` ERROR  Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'BlurhashModule' could not be found. Verify that a module by this name is registered in the native binary.Bridgeless mode: false. TurboModule interop: false. Modules loaded: {"NativeModules":["PlatformConstants","LogBox","SourceCode","Timing","AppState","BlobModule","WebSocketModule","SettingsManager","DevSettings","Networking","RedBox","Appearance","DevLoadingView","DeviceInfo","UIManager","ImageLoader","LinkingManager","RNCSafeAreaContext","NativeAnimatedModule","I18nManager","RNCSafeAreaContext","KeyboardObserver","ReanimatedModule","AsyncLocalStorage","RNGestureHandlerModule"],"TurboModules":[],"NotFound":["NativePerformanceCxx","NativePerformanceObserverCxx","BugReporting","HeadlessJsTaskSupport","SoundManager","IntentAndroid","NativeReactNativeFeatureFlagsCxx","RNSModule","FrameRateLogger","PlatformLocalStorage","RNC_AsyncSQLiteDBStorage","RNCAsyncStorage","AsyncSQLiteDBStorage","BlurhashModule"]}, js engine: hermes `


These are the dependencies...

"expo": "~51.0.4", "expo-apple-authentication": "~6.4.1", "expo-av": "~14.0.5", "expo-blur": "~13.0.2", "expo-build-properties": "~0.12.1", "expo-clipboard": "~6.0.3", "expo-constants": "~16.0.1", "expo-dev-client": "~4.0.18", "expo-document-picker": "~12.0.1", "expo-file-system": "~17.0.1", "expo-font": "~12.0.5", "expo-haptics": "~13.0.1", "expo-image": "~1.12.12", "expo-image-manipulator": "~12.0.4", "expo-image-picker": "~15.0.4", "expo-linear-gradient": "~13.0.2", "expo-linking": "~6.3.1", "expo-location": "~17.0.1", "expo-media-library": "~16.0.3", "expo-notifications": "~0.28.1", "expo-router": "~3.5.12", "expo-sharing": "~12.0.1", "expo-splash-screen": "~0.27.4", "expo-status-bar": "~1.12.1", "expo-system-ui": "~3.0.4", "expo-web-browser": "~13.0.3", "moti": "^0.29.0", "react": "18.2.0", "react-dom": "18.2.0", "react-native": "0.74.1", "react-native-actions-sheet": "^0.9.3", "react-native-blurhash": "^2.0.3",

yonac1 avatar Jun 28 '24 09:06 yonac1

Guten Tag, Hans here.

[!NOTE] New features, bugfixes, updates and other improvements are all handled mostly by @mrousavy in his free time. To support @mrousavy, please consider 💖 sponsoring him on GitHub 💖. Sponsored issues will be prioritized.

maintenance-hans[bot] avatar Jun 28 '24 09:06 maintenance-hans[bot]