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)
- Tab Navigator inside Stack Navigator Cause Re-Render when do redux action HOT 3
- How to change the pressColor of a drawer menu item? HOT 5
- Title overlaps when the title length increases HOT 5
- `useLinkProps` not generating correct link in browser HOT 4
- **人请看:作为一名资深5年的RN告诉你这个烂库别用,尤其是新手 HOT 2
- In Android 14, app gets restarted when navigating from portrait to landscape screen HOT 2
- React Navigator URLs specified in linking are being ignored when matching urls HOT 9
- Navigate to Screen with Scrollview and back to current screen with ScrollView, cause scroll stuck (not smooth) HOT 3
- react-native-drawer-layout: right drawer stuck in open position. Won't close. HOT 7
- Stack header accessibility issue: tab order HOT 2
- Error using setParams and setOptions, rollback to version @react-navigation/[email protected] is mandatory HOT 11
- Error from useBottomTabBarHeight() limits its usage. HOT 5
- Regression in material top tabs scrolling behavior in RN 0.73 HOT 2
- Drawer headerRight button also opens in the headerLeft. HOT 2
- React native bottom tab bar pushing itself up when opening keyboard HOT 3
- ReactNavigation doesn't build on ReactNative 0.73.5 on iOS (on Android everything is ok) HOT 1
- React native tabview stuck on iOS while switching tabs HOT 3
- Screen presentation type "modal" flickers when opening datepicker on iPhone SE (2022)
- Header focus issue on AndroidTV HOT 1
- 'createDrawerNavigator' is crashing the app
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.