Giter VIP home page Giter VIP logo

Comments (9)

ericvicenti avatar ericvicenti commented on March 28, 2024 4

Ah. It may make sense to add that functionality to core as well. I can see that it may be important to adjust that

from react-navigation.

sibelius avatar sibelius commented on March 28, 2024 1

I think it should be useful to modify this backgroundColor https://github.com/react-community/react-navigation/blob/e2f5e7fd494a9242edf1951e2398a1d1adf5b1ed/src/views/Card.js#L51

from react-navigation.

brunolemos avatar brunolemos commented on March 28, 2024

Not sure if it's the same thing, but also a way to change the backgroundColor of the iOS rootView on runtime (and the android equivalent).

from react-navigation.

ericvicenti avatar ericvicenti commented on March 28, 2024

Ok, closing this because cardStyle was implemented in #106.

@brunolemos, you can currently change the root view background by wrapping your app navigator in a view that has a background color set on it.

from react-navigation.

brunolemos avatar brunolemos commented on March 28, 2024

@ericvicenti if I understood you correctly, that would change the first view in the react hierarchy, but not the rootView from iOS, the one I set with this Obj-C code:
rootView.backgroundColor = [UIColor colorWithRed:0.29 green:0.83 blue:0.71 alpha:1.0];

If they have different background colors, which is my case, that would be very noticeable when you rotate the screen, for example:

rn-rootview.gif

from react-navigation.

ericvicenti avatar ericvicenti commented on March 28, 2024

Oh, hmm. You may need to jump into the ObjC to handle this case

from react-navigation.

brunolemos avatar brunolemos commented on March 28, 2024

I used to use react-native-navigation from wix, they have a screenBackgroundColor property that does this job, so I got used to it. (wix/react-native-navigation#437)

But yes, I'll probably have to create a bridge to be able to change it dynamically independently of the navigation library.

from react-navigation.

koenpunt avatar koenpunt commented on March 28, 2024

I think it should be useful to modify this backgroundColor

That's possible using the cardStyle option:

a64eb46

from react-navigation.

kelset avatar kelset commented on March 28, 2024

Closing this since as @koenpunt said it's possible via cardStyle.

from react-navigation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.