You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just tried to create custom obj-c component and use it with RN, but for some reason RCTUIManager force to update native component style from the rootView (and thereby resets my component's backgroundColor property).
and when I try to render it from my React code, I got my component with a gray (0.3 0.3 0.3 1) background or inherited(why?!) from my parent component in the react tree. For me it's totally unexpected behaviour. It should be transparent by default if nothing else has been specified for that component. How could I render my custom component with the color specified in the init?
Hi all,
I just tried to create custom obj-c component and use it with RN, but for some reason RCTUIManager force to update native component style from the rootView (and thereby resets my component's
backgroundColor
property).I have the following init in my component:
and when I try to render it from my React code, I got my component with a gray (0.3 0.3 0.3 1) background or inherited(why?!) from my parent component in the react tree. For me it's totally unexpected behaviour. It should be transparent by default if nothing else has been specified for that component. How could I render my custom component with the color specified in the
init
?cc @tadeuzagallo
The text was updated successfully, but these errors were encountered: