Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fix-travis-react-native-navigation

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fix-travis-react-native-navigation

React Native Navigation - truly native navigation for iOS and Android

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Build Status Join us on Discord

React Native Navigation v2 (WIP)

We are rebuilding react-native-navigation

Why Rebuild react-native-navigation?

A New & Improved Core Architecture

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:

  • What if you want to update your navbar icons and the user pops the screen? Your icons might update on the wrong screen.
  • What if you want to push a screen as a result of a redux action?

There are ways to solve some of these problems in v1 but they are not straightforward. We want to change that.

New API

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)

Built for Contributors

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.

Written In TDD

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.

v2 Roadmap

Current Priorities

  1. buttons in Android
  2. showOverlay in iOS
  3. showOverlay in Android
  4. async commands
  5. currentTab
  6. change navigationOptions to be nested
  7. topTabs in both platforms, with API implications

Top API

Top APIiOSAndroid
setRoot
registerContainer
container
sideMenu
tabs
customViewControllerContributeContribute
splitViewContributeContribute

Screen API

Screen APIiOSAndroid
push
pop
popToRoot
resetTo
showModal
dismissModal
showOverlayContribute
dismissOverlayContribute
customTransitionContribute
Screen Visibility
async commands (await push)Contribute

Navigation Options

topBariOSAndroidcontributors
titleWix
textColorWix
textFontSizeWix
textFontFamilyWix
backgroundColorWix
buttonColorContributeWix
hiddenWix
hideOnScrollContributeWix
translucentContributeWix
transparentContribute
noBorderContribute@gtchance
drawUnderWIP @gran33Contribute
blurContribute@gtchance
customWIP @gran33Contribute
subtitleColorContributeContribute
subtitleFontFamilyContributeContribute
largeTitle (iOS 11)/iOS Specific
tabBariOSAndroidcontributors
drawUnderWIP @gran33Contribute
hidden@gtchance
tabBadgeContributeWix
currentTab by IndexWix
currentTab by cointainerIdContributeWix
buttonsiOSAndroidcontributors
idContribute@Johan-dutoit
testIDContribute@Johan-dutoit
colorContribute@Johan-dutoit
iconContribute@Johan-dutoit
disableTintContribute@Johan-dutoit
fontSizeContribute@Johan-dutoit
fontWeightContribute@Johan-dutoit
fontWeightContribute@Johan-dutoit
statusBariOSAndroidcontributors
textColorSchemein development/ iOS specific
textColorSchemeSingleScreenin development/ iOS specific
blurContribute@gtchance
hideWithTopBarContribute@gtchance
hiddenContributeWIX
otheriOSAndroidcontributors
screenBackgroundColorContributeWix
orientationContributeWix
disabledBackGesture/ iOS specific
screenBackgroundImageNameContributeContribute
rootBackgroundImageNameContributeContribute
sideMenuVisibleContributeContribute

v1 vs v2 Feature Comparison

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):

Top Level API

APIv1v2
startTabBasedApp
startSinglePageApp
registerScreen
drawer

Screen API

 API             v1v2 iOSv2 Android
push
pop
showModal
popToRoot
resetTo
dismissModal
dismissAllModals
showContextualMenu/ Android specificContribute
dismissContextualMenu/ Androic specificContribute
showFab/ Android specificContribute
dismissFab/ Android specificContribute
showSnackBar/ Android specificContribute
dismissSnackBar/ Android specificContribute
showLightBoxContributeContribute
dismissLightBoxContributeContribute
handleDeepLinkContributeContribute
Screen Visibility

Styles

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.

v1v2 iOSv2 AndroidContributors
topBarTextColorWix
topBarTextFontSizeWix
topBarTextFontFamilyWix
topBarBackgroundColorWix
topBarButtonColorContributeWix
topBarHiddenWix
topBarHideOnScrollContributeWix
topBarTranslucentContributeWix
topBarTransparentWIP @bogobogoContribute
topBarNoBorderContribute@gtchance
drawUnderTabBarWIP @gran33Contribute
drawUnderTopBarWIP @gran33Contribute
statusBarBlurContribute@gtchance
topBarBlurContribute@gtchance
tabBarHiddenContribute@gtchance
statusBarTextColorSchemein development/ iOS specific
statusBarTextColorSchemeSingleScreenin development/ iOS specific
topBarSubtitleColorContributeContribute
topBarSubtitleFontFamilyContributeContribute
screenBackgroundColorContributeWix
orientationContributeWix
statusBarHideWithTopBarContribute@gtchance
statusBarHiddenContributeWIX
disabledBackGesture/ iOS specific
screenBackgroundImageNameContributeContribute
rootBackgroundImageNameContributeContribute
setButtonsContribute@Johan-dutoit
titleWix
toggleDrawerContribute
setTabBadgeContributeWix
switchToTabContribute
topBarCustomViewWIP @gran33Contribute
customTransition(shared element):x:WIP @bogobogoContribute
splitViewScreen:x:ContributeContribute

Element transitions, adding buttons and styles are not yet implemented. Contribute

FAQs

Package last updated on 17 Dec 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc