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

Using "inner" or "useArt" crashing on IOs #41

Open
DooaRashidAnsari opened this issue Oct 22, 2020 · 16 comments
Open

Using "inner" or "useArt" crashing on IOs #41

DooaRashidAnsari opened this issue Oct 22, 2020 · 16 comments

Comments

@DooaRashidAnsari
Copy link

I have added a neomorph component like this :
<Neomorph
darkShadowColor={Attrs.commonDarkShadowColor} // <- set this
lightShadowColor={Attrs.commonLightShadowColor}
inner={true}
useArt={true}
style={styles.background}
/>

IOs build is crashing on this line :

  • (void)setShadow:(ARTShadow)shadow
    {
    [self invalidate];
    _shadow = shadow;
    }

Above lines are located in ARTNode.m file

@alfianlensun
Copy link

i got this problem to

@roots-ai
Copy link

This is the error
Your Component is accessing findNodeHandle inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead

@chendinh
Copy link

hi, im try to release a new version of my app. but got this error. how can i slove this ?

@DooaRashidAnsari
Copy link
Author

I my case i achieved same effect as inner using dark color in place of lightShadowColor and light color in place of darkShadowColor with swapShadows={true} and removed inner and useArt. Just a workaround. Something like this:

<Neomorph
darkShadowColor={Attrs.commonLightShadowColor}
lightShadowColor={Attrs.commonDarkShadowColor}
style={styles.background}
swapShadows={true}

/>

@alireza847-programmer
Copy link

same issue

@v-honcharenko
Copy link

The issue is related to the @react-native-community/art module. There is a fix for this: react-native-art/art#70 but it is not released yet.

As a workaround install the latest code from the art repo:
npm i https://github.com/react-native-art/art.git

@meiqi1992
Copy link

same issue~

@repper
Copy link

repper commented Jan 15, 2021

The issue is related to the @react-native-community/art module. There is a fix for this: react-native-art/art#70 but it is not released yet.

As a workaround install the latest code from the art repo:
npm i https://github.com/react-native-art/art.git

This is also not working. If you are not using inner shadow and useArt option then you can avoid using that option and it will work for ios.

@hanayashiki
Copy link

The issue is related to the @react-native-community/art module. There is a fix for this: react-native-art/art#70 but it is not released yet.
As a workaround install the latest code from the art repo:
npm i https://github.com/react-native-art/art.git

This is also not working. If you are not using inner shadow and useArt option then you can avoid using that option and it will work for ios.

works for me

@bionanek
Copy link

hey guys, is this fixed yet? Or is there a hope that it's gonna be fixed soon?

@gustavogialim
Copy link

Some news about a new version guys?
I tried install the latest code from art repo but I got Malformed calls from JS in the lib components

@hanayashiki
Copy link

Honestly, this lib is unreliable. I am copying it down and maintaining it as part of the app

@yongmin86k
Copy link

I couldn't get it working with yarn add https://github.com/react-native-art/art.git

so I used a patch file for this fix using patch-package

patch file: @react-native-community+art+1.2.0.patch.zip

@MuhammadAbdullah54321
Copy link

MuhammadAbdullah54321 commented Oct 15, 2021

I couldn't get it working with yarn add https://github.com/react-native-art/art.git

so I used a patch file for this fix using patch-package

patch file: @react-native-community+art+1.2.0.patch.zip

It worked for me after struggling a bit.
I would say after you have done patching ....please delete the app from Simulator or Device and reinstall it and then test.
just running yarn ios may not work

@Corentints
Copy link

I couldn't get it working with yarn add https://github.com/react-native-art/art.git

so I used a patch file for this fix using patch-package

patch file: @react-native-community+art+1.2.0.patch.zip

Worked for me. Thank you very much!

@Bruce-zxy
Copy link

Bruce-zxy commented Dec 4, 2022

I couldn't get it working with yarn add https://github.com/react-native-art/art.git

so I used a patch file for this fix using patch-package

patch file: @react-native-community+art+1.2.0.patch.zip

Works for me, thanks!

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