Skip to content
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

Weird RTCUIManager behaviour #640

Closed
Kureev opened this issue Apr 3, 2015 · 0 comments
Closed

Weird RTCUIManager behaviour #640

Kureev opened this issue Apr 3, 2015 · 0 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@Kureev
Copy link
Contributor

Kureev commented Apr 3, 2015

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:

-(id)init
{
    self = [super init];
    if (self) {
        self.backgroundColor = [UIColor greenColor];
    }
    return self;
}

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

@Kureev Kureev closed this as completed Apr 15, 2015
@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

2 participants