folofse / androw

Shadows in React Native for Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

experience performance issues

hejun041 opened this issue · comments

This is a very well implemented library that perfectly restores the shadow on Android

But when used in large quantities on a project, there are serious performance problems :(
is there any solutions or ideas?

Yes it uses Bitmap Rendering to simulate the shadows which can be performance heavy if multiple shadows and animations are rendered at the same time.

I have not found any other solution for Android so far that can apply to any component without faking the shadow with Bitmap Render.

It not exactly faking it, more like actually calculating it 😉 It might be possible to do using OpenGL, or RenderScript, it might be more performant for some use cases, assuming it's adapted to the use case properly and the specific input fits the architecture.