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

Cannot Run in Expo Go

Open noctivityinc opened this issue 1 year ago • 6 comments

Current behavior

When trying to run the library in Expo Go for development it fails and claims to not be linked:


- You have run 'pod install'
- You rebuilt the app after installing the package
- You are not using Expo Go
, js engine: hermes

Expected behavior

Expected that I can include the library and still use Expo Go for development

Platform

  • [X] Android
  • [X] iOS

React Native Version

"react-native": "0.72.6",

React Native Compressor Version

"react-native-compressor": "^1.8.23",

Reproducible Steps And Demo

  1. Create an expo app
  2. Add the react-native-compressor library
  3. Run npx expo prebuild
  4. Try running npx expo start

noctivityinc avatar Jan 26 '24 01:01 noctivityinc

👋 @noctivityinc Thanks for opening your issue here! If you find this package useful hit the star🌟!

github-actions[bot] avatar Jan 26 '24 01:01 github-actions[bot]

One other thing, here is the relevant part of my app.json

 "plugins": [
      [
        "./plugins/withAndroidShareExtension/index",
        {
          "androidIntentFilters": ["text/*", "image/*", "video/*"]
        }
      ],
      [
        "expo-camera",
        {
          "cameraPermission": "The app allows you to take pictures so you add them to your boards."
        }
      ],
      [
        "expo-image-picker",
        {
          "photosPermission": "The app accesses your photos to let you add them to your boards.",
          "cameraPermission": "The app allows you to take pictures so you add them to your boards."
        }
      ],
      [
        "expo-config-plugin-ios-share-extension",
        {
          "activationRules": {
            "NSExtensionActivationSupportsText": true,
            "NSExtensionActivationSupportsWebURLWithMaxCount": 1,
            "NSExtensionActivationSupportsWebPageWithMaxCount": 1,
            "NSExtensionActivationSupportsImageWithMaxCount": 1,
            "NSExtensionActivationSupportsMovieWithMaxCount": 1
          }
        }
      ],
      ["react-native-compressor"]
    ],

noctivityinc avatar Jan 26 '24 01:01 noctivityinc

@numandev1 any thoughts or updates on this? I have to develop from my phone as I cant start Expo Go with this library

noctivityinc avatar Jan 30 '24 19:01 noctivityinc

Same here. Once I installed this library, it fuck3d the whole app when using Expo Go.

eusouoviana avatar Feb 22 '24 05:02 eusouoviana

@noctivityinc @eusouoviana We don't support expo go, if you want to use this library for the expo, you need to use expo prebuild where you cannot run app inside expo go

numandev1 avatar Feb 22 '24 07:02 numandev1

This library use native scripts. So expo needs to create the native ios and android directories. use the command "npm run android" (or run ios) instead of "expo start". Please close this issue

serolgames avatar Jun 03 '24 12:06 serolgames