react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

[v6] not work option: layout

Open aspidvip opened this issue 6 years ago • 4 comments

Issue Description

not work option -> layout -> backgroundColor

stack: {
                              children: [
                                {
                                  component: {
                                    name: MY_USER,
                                    options: {
                                      layout: {
                                        backgroundColor: '#EFEFF4',
                                      },

everything used to work


Environment

  • React Native Navigation version: "^6.2.0-snapshot.875",
  • React Native version: "0.61.5",
  • Platform(s) (iOS, Android, or both?): iOS
  • Device info (Simulator/Device? OS version? Debug/Release?): Simulator/Device 13.3

aspidvip avatar Mar 13 '20 10:03 aspidvip

@aspidvip If you want to set a background color to a component, then you probably want to use the componentBackgroundColor option.

guyca avatar Mar 15 '20 08:03 guyca

Hm.. from docs i see that componentBackgroundColor is for android only. Am i wrong?

And why backgroundColor not work?

olegdev avatar Mar 29 '20 20:03 olegdev

@olegdev in V6 i can confirm componentBackgroundColor works for both while backgroundColor is Android only 💁‍♂️

vedovato avatar Apr 23 '20 17:04 vedovato

@olegdev True, though it was different before v6 (but I used v2 before, so hard to compare). Either the docs are misleading here or I am misunderstanding something.

devattendant avatar May 01 '20 14:05 devattendant