Override navigationCard styles
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, react-native
- Domain
- mobile
Research direction
Start in styles.js and inspect how the navigationCard style is applied by the TabsRoute using the horizontal-pager transition. Reproduce the provided Root component with the background image and determine how a transparent background can be supplied without changing the existing layout behavior. Done means the image remains visible and the supported style override is clear.
Written by the indexing model from the issue text.
Description
Hi!
Thanks for this awesome library!
I have image on background in my app.
const style = {
image: {
flex: 1,
width: null,
height: null,
resizeMode: 'cover',
},
}
const Root = (props) => (
<Image source={require('../assets/img/background.jpg')} style={style.image}>
{props.children}
</Image>
);

So, if I'm try to using <TabsRoute path="/" component={Root} transition="horizontal-pager">, then i have gray background instead image. I found in styles.js
navigationCard: {
...absoluteFillObject,
overflow: 'hidden',
},
Making this
navigationCard: {
...absoluteFillObject,
backgroundColor: 'transparent',
overflow: 'hidden',
},
solve my issue.
Is there a way to override those styles?
Version
| Dependency | Version |
|---|---|
| react-router-native | 2.0.0-beta.0 |
| react-router | N/A |
| react-native | 0.37.0 |
- Dominant language
- JavaScript
- Stars
- 636
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from jmurzy/react-router-native
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 1/5 Under an hour Newbie friendliness 10/100
jmurzy/react-router-native#81 · 5 comments · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
jmurzy/react-router-native#79 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
jmurzy/react-router-native#78 · 2 comments · 3 reactions ·
-
Difficulty 1/5 Under an hour Newbie friendliness 25/100
All issues in jmurzy/react-router-native
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Area/DeveloperPortal Aspect/UI Severity/Minor Type/Bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
wso2/api-platform#4369 ·
Maintainers usually reply within 1 day
-
Own-agent checks: reject the Actions bot id in admit.mjs and test the source label in pr-verifyOpen
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
melodic-software/claude-code-plugins#17374 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
keyxmakerx/Chronicle#2284 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
soroswap/token-list#125 ·
Maintainers usually reply within 1 day