How to use the react-router-native.Switch function in react-router-native

To help you get started, we’ve selected a few react-router-native examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nitrogenlabs / arkhamjs-native / lib / components / Arkham.js View on Github external
}},{key:'render',value:function render()

{return(
this.state.init?

_react2.default.createElement(_reactRouterNative.NativeRouter,null,
_react2.default.createElement(_reactRouterNative.Switch,null,
this.props.children)):





null);
}}]),b}(_react.Component);Arkham.propTypes={children:_propTypes2.default.element,className:_propTypes2.default.string,config:_propTypes2.default.object,routes:_propTypes2.default.array,stores:_propTypes2.default.array},Arkham.defaultProps={config:{},routes:[],stores:[]},Arkham.childContextTypes={config:_propTypes2.default.object},exports.default=Arkham;

react-router-native

Declarative routing for React Native applications

MIT
Latest version published 2 days ago

Package Health Score

95 / 100
Full package analysis