react-native-neomorph-shadows icon indicating copy to clipboard operation
react-native-neomorph-shadows copied to clipboard

Using "inner" or "useArt" crashing on IOs

Open DooaRashidAnsari opened this issue 5 years ago • 16 comments

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

DooaRashidAnsari avatar Oct 22 '20 17:10 DooaRashidAnsari

i got this problem to

alfianlensun avatar Nov 06 '20 08:11 alfianlensun

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

roots-ai avatar Nov 12 '20 13:11 roots-ai

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

chendinh avatar Nov 17 '20 16:11 chendinh

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}

/>

DooaRashidAnsari avatar Nov 17 '20 17:11 DooaRashidAnsari

same issue

alireza847-programmer avatar Nov 22 '20 12:11 alireza847-programmer

The issue is related to the @react-native-community/art module. There is a fix for this: https://github.com/react-native-art/art/pull/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

v-honcharenko avatar Nov 22 '20 19:11 v-honcharenko

same issue~

meiqi1992 avatar Dec 17 '20 09:12 meiqi1992

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.

repper avatar Jan 15 '21 15:01 repper

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

hanayashiki avatar Apr 06 '21 05:04 hanayashiki

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

bionanek avatar Apr 14 '21 13:04 bionanek

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

gustavogialim avatar May 17 '21 18:05 gustavogialim

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

hanayashiki avatar May 17 '21 21:05 hanayashiki

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

yongmin86k avatar Aug 29 '21 04:08 yongmin86k

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

MuhammadAbdullah54321 avatar Oct 15 '21 11:10 MuhammadAbdullah54321

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!

Corentints avatar Feb 12 '22 21:02 Corentints

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!

Bruce-zxy avatar Dec 04 '22 07:12 Bruce-zxy