Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Run in Expo Go #266

Open
2 tasks done
noctivityinc opened this issue Jan 26, 2024 · 6 comments
Open
2 tasks done

Cannot Run in Expo Go #266

noctivityinc opened this issue Jan 26, 2024 · 6 comments

Comments

@noctivityinc
Copy link

noctivityinc commented Jan 26, 2024

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

  • Android
  • 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
Copy link

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

@noctivityinc
Copy link
Author

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
Copy link
Author

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

@eusouoviana
Copy link

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

@numandev1
Copy link
Owner

@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

@serolgames
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants