Comments (9)
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.
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.
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.
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.
@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:
from react-navigation.
Oh, hmm. You may need to jump into the ObjC to handle this case
from react-navigation.
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.
I think it should be useful to modify this backgroundColor
That's possible using the cardStyle
option:
from react-navigation.
Closing this since as @koenpunt said it's possible via cardStyle
.
from react-navigation.
Related Issues (20)
- Navigation 7 - Static - ts type interference breaks if add `screenOptions.animationTypeForReplace` HOT 3
- Navigation in drawer crashing app on Android with newArch HOT 2
- HeaderSearchBar Android hides on navigation HOT 1
- Passing a React Component (without wrapping it in a function) to `header` and `headerLeft` makes any `useNavigation` call in the custom headerLeft component return the wrong navigator HOT 4
- [react-native-tab-view] has issue with animationEnabled on iOS while switching tabs HOT 3
- Web: Cards are absoluteFilled which breaks the render for long content on web HOT 3
- React Native nested navigation unexpected behaviour HOT 5
- Header height - Can't change the height of the header HOT 4
- App crashes when i try to go back or use props.navigation.goBack()/navigate("[SCREENNAME]") HOT 4
- [iOS] - Black Screen when navigation to fullScreenModal HOT 4
- Swipe Back Gesture Not Dismissing Keyboard Properly on IOS HOT 2
- [NativeStack] headerBlurEffect: "extraLight" has no effect HOT 2
- Installation of React Navigation Package Caused Build Failed HOT 1
- React Native Tab View & Material Top Tabs are broken in RTL Language HOT 5
- The app stop working when use Animations in Tabs (new architecture) HOT 2
- react_native__WEBPACK_IMPORTED_MODULE_1__.default.getViewManagerConfig is not a function HOT 4
- react-native-tab-view does not work when used with @react-navigation/bottom-tabs on new architecture HOT 2
- maxWidth style not working for right side drawer HOT 2
- Animations are not working after navigating to the same screen with react-navigation/drawer && react-navigation/bottom-tabs HOT 1
- Cannot convert undefined or null to object HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-navigation.