-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Black background instead of transparent background #2809
Comments
can you please try using the props getSceneStyle for setting the background? @v3yr0n
This is what you must do to keep all the components transparent and the image you have loaded before router will become the common background instead. |
@themakerman not sure what you mean, but I tried to add the setSceneStyle prop and nothing happened. BTW, sceneStyle or setSceneStyle should do the same, right? |
and I manage to solve the issue with
The magic here is the zIndex: -1 Not sure if this is the best approach, but at least it works :) |
Is it a debug or release version? |
Debug |
If this is on Android, you shouldn't have to worry, I'm developing on Android and the debug is way slower than the release version ! |
@v3yr0n setSceneStyle prop doesn't exists. Its getSceneStyle....i think you saw my older version of comment. Good to know you fixed it. |
@themakerman that's solved. What I need now is to solve the exit animation, when the scene exits (check the gif). Any idea of how to do that? |
@v3yr0n so far what i am aware of is rnrf does not supports custom animation. However if you want your scenes to show top-down animation while mounting you can use modal prop in your scene. Check the v4 docs. also refer to #2629. I explain how to use light box component for kind off you would say custom animation. |
@themakerman thanks for answering. Well, i really need the animation like I demonstrated in the gif. I just want to make the exit of the scene more smooth. Any way I can do that @aksonov ? Thanks! |
@v3yr0n Try running in production or turning your debugger off. Lag should go |
No, same issue... |
If you want to implement transitions in your navigation, have a look at #2628 |
@v3yr0n what's the status there? |
Closed due inactivity |
Version
Tell us which versions you are using:
Expected behaviour
Transparent scene background
Actual behaviour
Black background when set to 'transparent'
Steps to reproduce
All components have background: 'transparent'. Any idea?
A simular code works on version 3.38.0
Thanks!
The text was updated successfully, but these errors were encountered: