
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
fix-travis-react-native-navigation
Advanced tools
React Native Navigation - truly native navigation for iOS and Android
We are rebuilding react-native-navigation
react-native-navigation has a few issues which are unsolvable in its current architecture. These issues stem from the same problem: you cannot specify on which screen you wish to make an action. Whenever you want to push a screen, show a modal or any other action, the action defaults to originate from your current screen. In most cases this is fine, but becoms problematic in specific edge cases. For example:
There are ways to solve some of these problems in v1 but they are not straightforward. We want to change that.
To solve this problem in v2, every screen receives its containerId
as a prop. Whenever you want to perform an action from that screen you need to pass the containerId
to the function:
Navigator.pop(this.props.containerId)
Currently, it requires a lot of work to accept pull requests. We need to manually make sure that everything works before we approve them because v1 is not thoroughly tested.
v2 is written with contributors in mind from day one.
v2 is written in Test Driven Development. We have a test for every feature including features that are not implemented yet. This makes accepting pull requests extremely easy: If our tests pass, your pull request is accepted.
Top API | iOS | Android |
---|---|---|
setRoot | ✅ | ✅ |
registerContainer | ✅ | ✅ |
container | ✅ | ✅ |
sideMenu | ✅ | ✅ |
tabs | ✅ | ✅ |
customViewController | Contribute | Contribute |
splitView | Contribute | Contribute |
Screen API | iOS | Android |
---|---|---|
push | ✅ | ✅ |
pop | ✅ | ✅ |
popToRoot | ✅ | ✅ |
resetTo | ✅ | ✅ |
showModal | ✅ | ✅ |
dismissModal | ✅ | ✅ |
showOverlay | Contribute | ✅ |
dismissOverlay | Contribute | ✅ |
customTransition | ✅ | Contribute |
Screen Visibility | ✅ | ✅ |
async commands (await push) | Contribute | ✅ |
topBar | iOS | Android | contributors |
---|---|---|---|
title | ✅ | ✅ | Wix |
textColor | ✅ | ✅ | Wix |
textFontSize | ✅ | ✅ | Wix |
textFontFamily | ✅ | ✅ | Wix |
backgroundColor | ✅ | ✅ | Wix |
buttonColor | ✅ | Contribute | Wix |
hidden | ✅ | ✅ | Wix |
hideOnScroll | ✅ | Contribute | Wix |
translucent | ✅ | Contribute | Wix |
transparent | ✅ | Contribute | |
noBorder | ✅ | Contribute | @gtchance |
drawUnder | WIP @gran33 | Contribute | |
blur | ✅ | Contribute | @gtchance |
custom | WIP @gran33 | Contribute | |
subtitleColor | Contribute | Contribute | |
subtitleFontFamily | Contribute | Contribute | |
largeTitle (iOS 11) | ✅ | /iOS Specific |
tabBar | iOS | Android | contributors |
---|---|---|---|
drawUnder | WIP @gran33 | Contribute | |
hidden | ✅ | ✅ | @gtchance |
tabBadge | ✅ | Contribute | Wix |
currentTab by Index | ✅ | ✅ | Wix |
currentTab by cointainerId | Contribute | ✅ | Wix |
buttons | iOS | Android | contributors |
---|---|---|---|
id | ✅ | Contribute | @Johan-dutoit |
testID | ✅ | Contribute | @Johan-dutoit |
color | ✅ | Contribute | @Johan-dutoit |
icon | ✅ | Contribute | @Johan-dutoit |
disableTint | ✅ | Contribute | @Johan-dutoit |
fontSize | ✅ | Contribute | @Johan-dutoit |
fontWeight | ✅ | Contribute | @Johan-dutoit |
fontWeight | ✅ | Contribute | @Johan-dutoit |
statusBar | iOS | Android | contributors |
---|---|---|---|
textColorScheme | in development | / iOS specific | |
textColorSchemeSingleScreen | in development | / iOS specific | |
blur | ✅ | Contribute | @gtchance |
hideWithTopBar | ✅ | Contribute | @gtchance |
hidden | ✅ | Contribute | WIX |
other | iOS | Android | contributors |
---|---|---|---|
screenBackgroundColor | ✅ | Contribute | Wix |
orientation | ✅ | Contribute | Wix |
disabledBackGesture | ✅ | / iOS specific | |
screenBackgroundImageName | Contribute | Contribute | |
rootBackgroundImageName | Contribute | Contribute | |
sideMenuVisible | Contribute | Contribute |
v2 currently supports most of react-native-navigation’s basic functionality but it is still behind v1. Here is the full comparison of features between v1 and v2 (will be updated regularly):
API | v1 | v2 |
---|---|---|
startTabBasedApp | ✅ | ✅ |
startSinglePageApp | ✅ | ✅ |
registerScreen | ✅ | ✅ |
drawer | ✅ | ✅ |
API | v1 | v2 iOS | v2 Android |
---|---|---|---|
push | ✅ | ✅ | ✅ |
pop | ✅ | ✅ | ✅ |
showModal | ✅ | ✅ | ✅ |
popToRoot | ✅ | ✅ | ✅ |
resetTo | ✅ | ✅ | ✅ |
dismissModal | ✅ | ✅ | ✅ |
dismissAllModals | ✅ | ✅ | ✅ |
showContextualMenu | ✅ | / Android specific | Contribute |
dismissContextualMenu | ✅ | / Androic specific | Contribute |
showFab | ✅ | / Android specific | Contribute |
dismissFab | ✅ | / Android specific | Contribute |
showSnackBar | ✅ | / Android specific | Contribute |
dismissSnackBar | ✅ | / Android specific | Contribute |
showLightBox | ✅ | Contribute | Contribute |
dismissLightBox | ✅ | Contribute | Contribute |
handleDeepLink | ✅ | Contribute | Contribute |
Screen Visibility | ✅ | ✅ | ✅ |
Note: v1 properties with names beginning with 'navBar' are replaced in v2 with properties beginning with 'topBar' to avoid confusion with the Android native bottom nav bar.
v1 | v2 iOS | v2 Android | Contributors | |
---|---|---|---|---|
topBarTextColor | ✅ | ✅ | ✅ | Wix |
topBarTextFontSize | ✅ | ✅ | ✅ | Wix |
topBarTextFontFamily | ✅ | ✅ | ✅ | Wix |
topBarBackgroundColor | ✅ | ✅ | ✅ | Wix |
topBarButtonColor | ✅ | ✅ | Contribute | Wix |
topBarHidden | ✅ | ✅ | ✅ | Wix |
topBarHideOnScroll | ✅ | ✅ | Contribute | Wix |
topBarTranslucent | ✅ | ✅ | Contribute | Wix |
topBarTransparent | ✅ | WIP @bogobogo | Contribute | |
topBarNoBorder | ✅ | ✅ | Contribute | @gtchance |
drawUnderTabBar | ✅ | WIP @gran33 | Contribute | |
drawUnderTopBar | ✅ | WIP @gran33 | Contribute | |
statusBarBlur | ✅ | ✅ | Contribute | @gtchance |
topBarBlur | ✅ | ✅ | Contribute | @gtchance |
tabBarHidden | ✅ | ✅ | Contribute | @gtchance |
statusBarTextColorScheme | ✅ | in development | / iOS specific | |
statusBarTextColorSchemeSingleScreen | ✅ | in development | / iOS specific | |
topBarSubtitleColor | ✅ | Contribute | Contribute | |
topBarSubtitleFontFamily | ✅ | Contribute | Contribute | |
screenBackgroundColor | ✅ | ✅ | Contribute | Wix |
orientation | ✅ | ✅ | Contribute | Wix |
statusBarHideWithTopBar | ✅ | ✅ | Contribute | @gtchance |
statusBarHidden | ✅ | ✅ | Contribute | WIX |
disabledBackGesture | ✅ | ✅ | / iOS specific | |
screenBackgroundImageName | ✅ | Contribute | Contribute | |
rootBackgroundImageName | ✅ | Contribute | Contribute | |
setButtons | ✅ | ✅ | Contribute | @Johan-dutoit |
title | ✅ | ✅ | ✅ | Wix |
toggleDrawer | ✅ | ✅ | Contribute | |
setTabBadge | ✅ | ✅ | Contribute | Wix |
switchToTab | ✅ | ✅ | Contribute | |
topBarCustomView | ✅ | WIP @gran33 | Contribute | |
customTransition(shared element) | :x: | WIP @bogobogo | Contribute | |
splitViewScreen | :x: | Contribute | Contribute |
Element transitions, adding buttons and styles are not yet implemented. Contribute
FAQs
React Native Navigation - truly native navigation for iOS and Android
The npm package fix-travis-react-native-navigation receives a total of 3 weekly downloads. As such, fix-travis-react-native-navigation popularity was classified as not popular.
We found that fix-travis-react-native-navigation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.