Conversation
|
resolves #35 |
|
Hi, thank you for this PR! I've only run-tested this PR on iOS so far and didn't dive into the code much but I've found two major issues;
|
|
Bumped the example app to latest stable which should help you debug this issue |
| "version": "0.6.0", | ||
| "version": "0.7.0", | ||
| "description": "Simple shimmering effect in React Native", | ||
| "main": "index.js", |
There was a problem hiding this comment.
Don't forget to delete the old index file too 👍
The example is bumped to latest RN version but fabric was not enabled. Let me add two separate examples for the new and old architecture. And let me check again regarding the issues mentioned |
|
Enabling/disabling fabric is pretty trivial, i prefer having just one example project as it is less maintenance |
Fixed crash when animating switch is toggled Removed index.js
|
@oblador The issue has been fixed. Please review the updated PR |
|
Thanks for the update, however the app is still crashing if I reload/hot refresh or toggle the animation enabled switch. |
…hitecture and updated README
@oblador Can you please check if you have the latest pull and have deleted the node_modules and build folders before running the app? It looks like the error is due using property "direction" instead of "shimmeringDirection". In the last commit(d9aef78) I had updated two properties(direction->shimmeringDirection and opacity->shimmeringOpacity) for the old architecture apps as the new ones were accepting shimmeringDirection and shimmeringOpacity. |
|
@oblador Had a look at these issues and here are my observations: - On Android using Fabric the Loading text is not visible. Also, I noticed that if I comment the text, save it and then uncomment and save it(which makes it render twice), the "Loading..." label will be visible. - On iOS using Fabric the animation duration on the Logo seems to be wrong (it's very slow) |
|
Hmm, the linked issue was already fixed by bumping the native dependency. The iOS issue i think is related to how the prop is updated (or not updated). That prop is applied and calculated in a special way on iOS where the order seems to matter. |
|
Regarding android, yes I realised it when i rechecked it after you reported. And it is working fine even in my PR for the old architecture. But I am not able to identify what exactly is the issue with new architecture. Regarding iOS, yes i did see and realise that. Hence i am updating the duration at the end(file - on load line 44 and on update line 111. |
Updated RN version of example app


Added support for the fabric architecture along with backward compatibility for the old architecture.
Simulator.Screen.Recording.-.iPhone.13.-.2022-10-25.at.18.33.31.mp4