Gathering detailed insights and metrics for simple-react-navigation
Gathering detailed insights and metrics for simple-react-navigation
Gathering detailed insights and metrics for simple-react-navigation
Gathering detailed insights and metrics for simple-react-navigation
react-native-simple-navigation
React Native lightweight library for navigation with swiping
react-tabs-scrollable
a simple react scrollable tabs with a lot of additional features and with fully supporting of RTL mode
react-simple-navigation
A simple navigation router for React-Native
react-simple-stack-navigation
Simple react navigation module for projects prototyping
npm install simple-react-navigation
Typescript
Module System
Node Version
NPM Version
50.5
Supply Chain
93.9
Quality
74
Maintenance
50
Vulnerability
99.6
License
JavaScript (100%)
Total Downloads
1,074
Last Day
1
Last Week
7
Last Month
16
Last Year
97
17 Commits
1 Branches
1 Contributors
Updated on Mar 27, 2017
Latest Version
1.0.1
Package Id
simple-react-navigation@1.0.1
Size
17.51 kB
NPM Version
4.1.2
Node Version
7.7.3
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
250%
7
Compared to previous week
Last Month
77.8%
16
Compared to previous month
Last Year
38.6%
97
Compared to previous year
1
2
Easy to setup stack navigation for react and react-native apps using Redux.
npm install simple-react-navigation
App.js
import React from 'react';
import { Provider } from 'react-redux';
import store from './store';
import Main from './components';
export default function App() {
return (
<Provider store={ store }>
<Main />
</Provider>
);
}
Main.js
import React from 'react';
import { connect } from 'react-redux';
import Navigator from 'simple-react-navigation';
import { routes } from '../routes';
function Main(props) {
return <Navigator routeStack={ props.routeStack } routes={ routes } />
}
function mapStateToProps(state) {
return {
routeStack: state.routeStack
};
}
export default connect(mapStateToProps)(Main);
routeStack.reducer.js
import { createReducer } from 'simple-react-navigation';
const options = {
defaultRoute: 'Home'
}
export default createReducer(options);
routes.js
import Home from './components/Home';
import Foo from './components/Foo';
export const routes = {
Home: { screen: Home },
Foo: { screen: Foo }
};
routeStack.actions.js
const NAVIGATE = 'NAVIGATE';
const NAVIGATE_BACK = 'NAVIGATE_BACK';
export function navigate(route) {
return {
type: NAVIGATE,
route
};
}
export function navigateBack() {
return {
type: NAVIGATE_BACK
}
}
Home.component.js
import React from 'react';
import { connect } from 'react-redux';
import { navigate } from '../../actions/routeStack.actions';
export function Home(props) {
const { navigate } = props;
return (
<div>
<Button onClick={ navigate.bind(this, 'Foo')>
Navigate to 'Foo'
</Button>
</div>
);
}
const actions = { navigate };
export default connect(null, actions)(Home);
Foo.component.js
import React from 'react';
import { connect } from 'react-redux';
import { navigateBack } from '../actions/routeStack.actions';
function Foo(props) {
const { navigateBack } = props;
return (
<div>
<Button onClick={ navigateBack }>
Navigate back to last active route
</Button>
</div>
);
}
const actions = { navigateBack };
export default connect(null, actions)(Foo);
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/17 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
47 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-05
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More