wix-incubator / react-native-controllers

Native IOS Navigation for React Native (navbar, tabs, drawer)
MIT License
611 stars 82 forks source link

Customise RCTRootView background colour #88

Closed joe-noel-dev closed 8 years ago

joe-noel-dev commented 8 years ago

Originally raised in wix/react-native-navigation#138, but I believe it is more appropriate in this repo.

React Native allows you to customise the background colour of the root view on iOS by doing something along the lines of rootView.backgroundColor = [UIColor redColor]; in your AppDelegate.m. When using react-native-controllers however, this takes care of creating the root view so you never have access to it.

In my project, this means that the background colour of the root view is wrong, so when I navigate to a new route there is a flash of the wrong colour before my JS is loaded.

Is it possible to expose the default background property of the root view?

littlesome commented 8 years ago

+1, need this too

drorbiran commented 8 years ago

Hi It will be addressed to in react-native-navigation