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

Doesn't work in Expo SDK36 #183

Closed
sungsong88 opened this issue Dec 10, 2019 · 18 comments · Fixed by #229
Closed

Doesn't work in Expo SDK36 #183

sungsong88 opened this issue Dec 10, 2019 · 18 comments · Fixed by #229

Comments

@sungsong88
Copy link

Can't use it. Both iOS and Android crashes.

Invariant Violation: requireNativeComponent: "ARTShape" was not found in the UIManager.
@duylinhdang1998
Copy link

how to fix that?

@lbornov2
Copy link

Happens on iOS only for me:

    "react-native-progress": "^4.0.1",
    "react-native-progress-circle": "^2.1.0",

Anyone have a solution?

@mrikirill
Copy link

mrikirill commented Dec 17, 2019

You could try this:

yarn add @react-native-community/art
react-native link @react-native-community/art
cd ios && pod install
re-build project

@duylinhdang1998
Copy link

You could try this:

yarn add @react-native-community/art
react-native link @react-native-community/art
cd ios && pod install
re-build project

sdk36 expo cli not react native cli
can't link

@sungsong88
Copy link
Author

sungsong88 commented Dec 17, 2019

@duylinhdang1998 +1. Expo can't use link 😢

@mrikirill
Copy link

mrikirill commented Dec 18, 2019

I use 'react-native link' command without any problems in my expo (ejected) project. I've fixed this issue with 'ARTShape' in my expo project when I've upgraded from SDK34 -> SDK36

@oblador
Copy link
Owner

oblador commented Dec 18, 2019

Expo docs claim they have ART built in, but maybe it's time to rethink the choice of vector rendering library now that it's been janked from core.

@ivansenic
Copy link

Confirmed by us as well. Only IOS. Here is expo env info:

  Expo CLI 3.11.1 environment info:
    System:
      OS: Linux 5.0 Ubuntu 18.04.3 LTS (Bionic Beaver)
      Shell: 4.4.20 - /bin/bash
    Binaries:
      Node: 10.17.0 - /usr/bin/node
      npm: 6.11.3 - /usr/bin/npm
    npmPackages:
      @types/react: ~16.9.0 => 16.9.16 
      @types/react-native: ~0.60.23 => 0.60.25 
      @types/react-navigation: ^3.0.7 => 3.0.7 
      expo: ^36.0.0 => 36.0.1 
      react: ~16.9.0 => 16.9.0 
      react-native: https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz => 0.61.4 
      react-navigation: ^3.11.1 => 3.11.1 
    npmGlobalPackages:
      expo-cli: 3.11.1

@kennylbj
Copy link

+1

@bucktower
Copy link

Expo docs address this issue in react-native-progress specifically with examples of how to get around it using vector if you want to stay in Managed Workflow

@Aakashsajjad095
Copy link

use this command in cmd for ART-SHAPE on expo
npm install @react-native-community/art --save

@dagan-arbox
Copy link

use this command in cmd for ART-SHAPE on expo
npm install @react-native-community/art --save

none of the above solved the issue, Expo has any bug fix on this?

@ajgrowney
Copy link

Error I was running into was:

 web  Failed to compile.
C:/path/node_modules/react-native/Libraries/StyleSheet/processColor.js
Module not found: Can't resolve '../Utilities/Platform' in 'C:\path\node_modules\react-native\Libraries\StyleSheet'

@brentvatne
Copy link

Expo docs claim they have ART built in, but maybe it's time to rethink the choice of vector rendering library now that it's been janked from core.

yeah we removed ART from expo managed apps and updated our docs accordingly: https://docs.expo.io/versions/latest/sdk/art/

we don't plan to include it because it is not really maintained and its functionality can be achieved in a more standard way using svg

@oblador
Copy link
Owner

oblador commented Mar 25, 2020

I’ll accept a PR migrating to the svg lib. Reason I went with ART to begin with was ease of integration which is now lost anyways and we’re just stuck with the bugs.

@itsashis4u
Copy link

Hi @oblador, I'm new to open source and I haven't used the library. But I'll be happy to try and migrate it to react-native-svg

@duylinhdang1998
Copy link

Hi, I can't use it in Expo
I got error No Component found for view with name "ART Shape"

@frw
Copy link
Contributor

frw commented Jun 27, 2021

@oblador I've submitted a PR migrating to react-native-svg and it should resolve this issue. Do take a look! #229

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

Successfully merging a pull request may close this issue.